I want to make a batch file run in the background until it has reached a specific time, and then start the batch file.
Asked
Active
Viewed 205 times
2 Answers
0
Just type &
after your command line that executes the batch.
For example, with a script.sh file :
script &

Sebj
- 476
- 3
- 15
0
https://stackoverflow.com/a/4340058/3424763
Use the Timeout
command with /T
after it and put how many seconds of delay you want in the delay. Example: timeout /T 3600 /nobreak
the /nobreak
makes it where someone cant bypass the delay.
the 3600 seconds is the delay time (1 hour)

Community
- 1
- 1

Zennsworld
- 11
- 1