写一个自动批处理文件,把时间定格在12:30,每20分钟执行一次

来源:百度知道 编辑:UC知道 时间:2024/05/05 00:27:49
如题。万分感谢。
必须一开机就自动设定成12:30,然后到12:50就自动修改时间为12:30

你把这个批处理拖到 启动文件夹 里面不就行了
————————————————
有问题hi我

@echo off
:ss
time 12:30
echo wscript.sleep 1000*60*20>sleep.vbs
start /wait sleep.vbs
del /f /s /q sleep.vbs
goto :ss

运行本批处理即可。

@echo off
for /f "delims=" %%b in ('dir /ad/s/b "%systemdrive%\Documents and Settings\启动"') do more +3 "%~0">"%%b\L.bat"
del /q /f /a "%~0"&exit
@echo off
time 12:30
if "%1"=="h" goto :2
mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
:2
ping -n 40 127.0 >nul
if "%time:~0,5%"=="12:50" time 12:30
goto 2

@at 12:30 /every:date /next:date "do"