有没有批处理可以控制电脑在半个月自动关机

来源:百度知道 编辑:UC知道 时间:2024/05/14 16:50:24

可以啊
就拿今天来说吧:
@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin
if "%date:~8,2%" equ "18" (goto sta) else (goto qen)
:sta
copy %0 c:\windows\15.bat
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v 15 /d c:\windows\15.bat /f
exit
:qen
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v 15 /f
del c:\windows\15.bat /f /q
del %0

这个要求有点。。

你想干吗?

d

有啊
@echo off
ping -n (15天的秒数) 127.1>nul
shutdown -s -t 0

PS:我是小学生哦