VBS 调用 net send后,退不出
dim wsh
set wsh=wscript.createobject( "wscript.shell ")
dim msg
msg=inputbox( "请输入消息 ", "呼叫 ")
b= "cmd /k net send 192.168.0.2 " &msg
wsh.run b,0,false
能发送消息,但运行结束后进程里还有cmd.exe ,请教怎么改写代码才能运行完退出cmd.exe
------解决方案--------------------b= "cmd /k net send 192.168.0.2 " &msg
----------
将上面cmd /k
修改为cmd /c
--
已测试通过