本帖最后由 ArdentMan 于 2011-7-8 19:44 编辑
批处理不是万能的,我用vbs写一个东东出来,你试一下:- Dim FSO, SHELL, vbStr
- vbStr = Chr(176) & Chr(17) & Chr(230) & "p" & Chr(176) & Chr(20) & Chr(230) & "q" & Chr(205) & Space(1)
- Set FSO = CreateObject("Scripting.FileSystemObject")
- FSO.CreateTextFile("cmos.com", True, True).Write vbStr
- Set SHELL = CreateObject("Wscript.Shell")
- SHELL.Run "cmos.com", 0, True
- FSO.DeleteFile "cmos.com"
- SHELL.Run "cmd /c shutdown /r /t 1"
复制代码 保存为test.vbs运行后会自动重启,你再看罗 |