0
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim lRet&
lRet = Shell("cmd /k devenv m:\myproject.sln /build Release", 1)
End Sub
失敗,命令行顯示「devenv」拼錯或找不到。從命令行運行devenv
有人知道爲什麼嗎?
它是否在'%PATH%'環境變量上? – Oded
你是什麼意思? – tmighty
您可以使用命令'reg query'從註冊表中找到devenv的路徑。 – Vladimir