VB.NET 调用外部程序

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()


你可能感兴趣的:(command,VB.NET)