Beispiel #1
0
        private static void ConfirmStart()
        {
            int AffectedFolders = 0;

            if (_Recursive)
            {
                AffectedFolders = GetAffectedFolderCount(_StartingPath);
            }

            Console.WriteLine();
            Console.WriteLine($"Working path: {_StartingPath}");

            bool Rename =
                Prompt.Bool("Rename files to sequential names?" +
                            (_Recursive
                                ? $" (RECURSIVE: {AffectedFolders} FOLDER{(AffectedFolders > 1 ? "S" : "")} AFFECTED!)"
                                : ""));

            if (Rename)
            {
                return;
            }

            Console.WriteLine("Process aborted!");
            Environment.Exit(0);
        }