VB.NET 调用外部程序

来源:互联网 发布:tensorflow 二分类 编辑:程序博客网 时间:2024/04/27 22:58

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