Process.Start(command 指令)
或用以下方法等待命令执行完
Dim objProcess = New System.Diagnostics.Process() objProcess.StartInfo.FileName = "cmd.exe - command argument" objProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal objProcess.Start() 'Wait until the process passes back an exit code objProcess.WaitForExit()
原文链接:https://www.f2er.com/vb/260619.html