RunExternalCmdShowConsole() public method

Run command, console window is visible, wait for exit
public RunExternalCmdShowConsole ( string cmd, string arguments ) : void
cmd string
arguments string
return void
コード例 #1
0
        public static bool AskForCacheHostkey(IWin32Window owner, GitModule module, string remoteUrl)
        {
            if (!remoteUrl.IsNullOrEmpty() && MessageBoxes.CacheHostkey(owner))
            {
                module.RunExternalCmdShowConsole(
                    "cmd.exe",
                    string.Format("/k \"\"{0}\" -T \"{1}\"\"", AppSettings.Plink, remoteUrl));

                return true;
            }

            return false;
        }