Run CMD Minimized/Hidden [closed]

ぐ巨炮叔叔 提交于 2021-01-28 08:05:47

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!