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.

Recommended Today

Custom factory class

using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; namespace LYZB.ApiConfig { /// ///Custom factory class /// // generic public abstract class AssesUtil where T : class,new() { /// ///Cache collection /// private static Hashtable hash = Hashtable.Synchronized(new Hashtable()); /// ///Execution instance method /// ///Method name ///Parameter type ///Parameter entity /// public […]