使用process.start(); [英] using process.start();
本文介绍了使用process.start();的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用process.start()时,命令提示符的屏幕上会出现闪烁.
如何隐藏它?
When i use process.start() there is a flash on the screen of the command prompt.
How can I hide it?
推荐答案
您可以尝试以下方法吗:
Can you try this:
Dim PSI As New ProcessStartInfo("C:\somefiletoexecute.exe", "some argument to pass")
PSI.CreateNoWindow = True
PSI.WindowStyle = ProcessWindowStyle.Hidden
Process.Start(PSI)
看看以下内容: ProcessStartInfo类 [
Have a look at this: ProcessStartInfo Class[^]...
好吗,这取决于您启动的应用程序是否是控制台?
Well it depends on if the application your starting is a console one or not, surely?
这篇关于使用process.start();的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文