@echo off :a rem 取得當前時分值 set currentTime=%time:~0,2%%time:~3,2% rem echo TIME:%currentTime% rem 調用程序的腳本:"J:/lanp/資治通鑒經典故事 高清晰PDF.PDF" | start /b if %currentTime%==1856 (shutdown /s /t 60) goto :a pause
新建一個vds文件,命名為autoRun.vbs,代碼如下:
復制代碼 代碼如下:
set ws=wscript.createobject("wscript.shell") ws.run "J:/lanp/autoRun/timer.bat /start",0