0

下面的代码是我尝试打开 Windows 资源管理器,然后等待用户关闭它,然后继续执行程序。

这适用于 Notepad.exe 而不是 Exlorer.exe

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim newProc As Diagnostics.Process
    'newProc = Diagnostics.Process.Start("Notepad.exe") 'This works
    newProc = Diagnostics.Process.Start("Explorer.exe") 'This does not work
    newProc.WaitForExit()
    MsgBox("Continue Processing")

结束子

谢谢你的帮助

4

0 回答 0