2
的时候如果我有这样的代码隐藏命令窗口在vb.net中运行的进程
' Send file to Unix server via pscp
Dim Proc As New System.Diagnostics.Process
Proc.StartInfo = New ProcessStartInfo("C:\Windows\System32\cmd.exe")
Proc.StartInfo.Arguments = "/C C:\pscp.exe -pw " & PASSWORD & " " & physicalFolder & "\" & UNIXSCRIPTNAME & " " & unixLogin
Proc.StartInfo.RedirectStandardInput = True
Proc.StartInfo.RedirectStandardOutput = False
Proc.StartInfo.UseShellExecute = False
Proc.Start()
' Allows script to execute sequentially instead of simultaneously
Proc.WaitForExit()
我能做些什么使命令窗口未出现此执行时? 谢谢!
这就是我需要的到底是什么。谢谢! – envinyater 2012-08-02 16:16:27
不客气。 – Adil 2012-08-02 16:17:35