SoFunction
Updated on 2025-04-08

Sharing example of running bat timer program in the background

 
Create a new BAT processing file, named it, the code is as follows:

Copy the codeThe code is as follows:

@echo off
:a
rem gets the current time-point value
set currentTime=%time:~0,2%%time:~3,2%
rem echo TIME:%currentTime%
rem call program script: "J:\lanp\Zizhi Tongjian Classic Story High Definition" | start /b
if %currentTime%==1856 (shutdown /s /t 60)
goto :a
pause

Create a new vds file, named it, the code is as follows:

Copy the codeThe code is as follows:

set ws=("")
"J:\lanp\autoRun\ /start",0

Double-click to run and it will be executed in the background.