【重要】VBS中直接使用命令行方法
Set ws = CreateObject("Wscript.Shell")
ws.Run "shutdown -s -t 60",,true
Set ws = CreateObject("Wscript.Shell")
ws.Run "cmd.exe /c echo hello,world > c:\hello.txt",0,true
Set ws = Nothing
MsgBox "ok"
ws.Run "cmd.exe /c echo hello,world > c:\hello.txt",0,true
Set ws = Nothing
MsgBox "ok"
赞 (0)