问题
I use the following code to execute a command line executable. It does work, but it opens to a CMD window that is full size and blocks the form that I use to call it. Over our VPN, this may take a considerable amount of time and I would like to have it minimized or hidden to prevent the user from possible aborting the CMD window. Any help is greatly appreciated!
Process.Start(My.Settings.BatchExeLoc, ProcessParameters.ToString).WaitForExit()
回答1:
Ran across this in another forum. Sorry to waste any ones time.
Process.StartInfo.CreateNoWindow = True
来源:https://stackoverflow.com/questions/63524762/run-cmd-minimized-hidden