重新启动PC Remotly使用vb.net后,命令窗口未关闭

时间:2016-12-28 08:08:39

标签: vb.net

我想在vb.net中运行两个cmd命令

Dim command As String ="Net USE \\serverip\IPC$ password /USER:username"

 Dim command2 As String ="shutdown /r /t 3 /m \\serverip"

Process.Start("cmd.exe", "/k" + command)

Process.Start("cmd.exe", "/C" + command2)

打开命令窗口我们怎么能关闭它。

我尝试process.kill()它无效。

0 个答案:

没有答案
相关问题