static void Main(string[] args)
        {
            string               folderPath           = "C:\\docs";
            DirectoryInfo        startDir             = new DirectoryInfo(folderPath);
            RecurseFileStructure recurseFileStructure = new RecurseFileStructure();

            recurseFileStructure.TraverseDirectory(startDir);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            var appSettings = ConfigurationManager.AppSettings;

            faultyFolders = appSettings["faultyFolders"];
            modifyFolders = appSettings["modifyFolders"];

            DirectoryInfo startDir = new DirectoryInfo(faultyFolders);

            RecurseFileStructure recurseFileStructure = new RecurseFileStructure();

            recurseFileStructure.TraverseDirectory(startDir);

            Console.WriteLine("Kapatmak için enter tuşuna basın...");
            Console.ReadLine();
        }
        static void Main(string[] args)
        {
            var appSettings = ConfigurationManager.AppSettings;

            corrupted1 = appSettings["Visilabs1"];
            corrupted2 = appSettings["Visilabs2"];
            corrupted3 = appSettings["Visilabs3"];
            corrupted4 = appSettings["Visilabs4"];
            modify     = appSettings["Modify"];

            Console.Write("Enter a file name: ");
            value = Console.ReadLine();

            DirectoryInfo        startDir             = new DirectoryInfo(corrupted1);
            RecurseFileStructure recurseFileStructure = new RecurseFileStructure();

            recurseFileStructure.TraverseDirectory(startDir);

            DirectoryInfo        startDir2             = new DirectoryInfo(corrupted2);
            RecurseFileStructure recurseFileStructure2 = new RecurseFileStructure();

            recurseFileStructure2.TraverseDirectory(startDir2);

            DirectoryInfo        startDir3             = new DirectoryInfo(corrupted3);
            RecurseFileStructure recurseFileStructure3 = new RecurseFileStructure();

            recurseFileStructure3.TraverseDirectory(startDir3);

            DirectoryInfo        startDir4             = new DirectoryInfo(corrupted4);
            RecurseFileStructure recurseFileStructure4 = new RecurseFileStructure();

            recurseFileStructure4.TraverseDirectory(startDir4);

            Console.WriteLine("Press enter to close...");
            Console.ReadLine();
        }