ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
.NET Framework

c# find ALL your old configs u lost!

Submitted by Wunderbaummm at 27-05-2023, 06:33 AM


c# find ALL your old configs u lost!
5.003 Views
Wunderbaummm's Avatar'
Wunderbaummm
Offline
#1
So i created this c# program which allows u to find ur old .loli or .svb configs inside your downloads section in your files :) all u gotta do is compile and execute it will look like it INSTANT crashes but dont worry it has done its job. if u look in your files sections now u will see a folder called "MovedFiles" and if u open that u will see all ur configs thats located in ur files is moved there. Please consider a like or a +rep if it has helped you :) have an awesome day
oh and yea u can customize it to look your whole pc through for the files or make it search for other things such as mp4's or jpegs etc


[ Hidden Content! ]

using System;
using System.IO;

class Program
{
    static void Main()
    {
        try
        {
            // Get the path to the Downloads folder
            string downloadsFolderPath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\Downloads";

            // Check if the Downloads folder exists
            if (!Directory.Exists(downloadsFolderPath))
            {
                Console.WriteLine("Downloads folder not found.");
                return;
            }

            // Create a new folder named "MovedFiles" in the Downloads folder
            string newFolderPath = Path.Combine(downloadsFolderPath, "MovedFiles");
            Directory.CreateDirectory(newFolderPath);

            // Get the files in the Downloads folder
            string[] files = Directory.GetFiles(downloadsFolderPath);

            foreach (string filePath in files)
            {
                string fileName = Path.GetFileName(filePath);
                string fileExtension = Path.GetExtension(filePath);

                // Check if the file extension is ".svb" or ".loli"
                if (fileExtension == ".svb" || fileExtension == ".loli")
                {
                    // Generate the new path for the file in the "MovedFiles" folder
                    string newFilePath = Path.Combine(newFolderPath, fileName);

                    // Move the file to the new folder
                    File.Move(filePath, newFilePath);

                    Console.WriteLine("Moved file: " + fileName);
                }
            }
        }
        catch (Exception ex)
        {
            Console.WriteLine("An error occurred: " + ex.Message);
        }
    }
}




i do combo making ig?
1
Reply


Messages In This Thread
c# find ALL your old configs u lost! - by Wunderbaummm - 27-05-2023, 06:33 AM


Users browsing this thread: 2 Guest(s)