Sample sharing of bat timer program running in the background

Time:2019-11-14

 
Create a bat processing file named timer.bat. The code is as follows:

Copy codeThe code is as follows:
@echo off
:a
REM gets the current time score
set currentTime=%time:~0,2%%time:~3,2%
rem echo TIME:%currentTime%
REM invokes the script of the program: “J: \ lanp \ Zizhitongjian classic story high definition PDF. PDF” | start / b
if %currentTime%==1856 (shutdown /s /t 60)
goto :a
pause

Create a new VDS file named autorun.vbs. The code is as follows:

Copy codeThe code is as follows:
set ws=wscript.createobject(“wscript.shell”)
ws.run “J:\lanp\autoRun\timer.bat /start”,0

Double click to run autorun.vbs to execute timer.bat in the background.