1
我希望使用VB.NET構建的Windows應用程序打開PowerShell onclick按鈕事件並將目錄切換到C:\並且不關閉窗口。在VB.NET中打開PowerShell和Change目錄
這裏是我的代碼:
Private Sub PowershellToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles PowershellToolStripMenuItem.Click
Process.Start("powershell")
End Sub
我試圖"powershell.exe"
後添加"-wait"
,但會導致一個錯誤。任何人都有一個想法,我該怎麼做呢?