Beispiel #1
0
        static int Main(string[] args)
        {
            String directory;

            try
            {
                directory = args[0];
            }
            catch (IndexOutOfRangeException e)
            {
                directory = Directory.GetCurrentDirectory();
            }

            var success = FileUnblockManager.UnblockAllProgramFiles(directory);

            if (!success)
            {
                return(-1);
            }

            Console.WriteLine("Successfully unblocked all files in " + directory);
            Console.WriteLine("Press any key to close...");

            Console.ReadKey();

            return(0);
        }
Beispiel #2
0
        static int Main(string[] args)
        {
            var success = FileUnblockManager.UnblockAllProgramFiles(args[0]);

            if (!success)
            {
                return(-1);
            }

            return(0);
        }