예제 #1
0
        private static void LaunchBackupCreator()
        {
            var currentDirectory = DirectoryEx.GetExecutingDirectory().FullName;
            var creatorDirectory = $"{currentDirectory}/BackupCreator/The Witcher 3 Backup Creator.exe";

            var process = new Process()
            {
                StartInfo =
                {
                    FileName       = $"{creatorDirectory}",
                    CreateNoWindow = false
                }
            };

            process.Start();

            // Removes the possibility of stopping the backup prematurely.
            if (!process.HasExited)
            {
                process.WaitForExit();
            }
        }