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