更新时间:2023-02-13 15:18:07
在将 Process.Start 的返回值保存到变量后,您可以使用几个属性/方法:
There are several properties/methods you can use after you have saved the return value of Process.Start to a variable:
有关 Process 类及其功能的概述,请参阅此 链接.
For an overview of the Process class and its capabilities, see this link.
示例:
Dim p As Process = Process.Start(filePath & ".bat", filePath.Substring(0, filePath.LastIndexOf("\")))
p.WaitForExit()