Quote:
|
Originally Posted by paulmedic555
Hi all silly question but how do i can start a program at a specific time?For example start firefox at 5:00 am?(no crontab)
|
@echo off
:start
for /f "tokens=1,2 delims= " %%a in ('time /t') do set time1=%%a%%b & ::gets the time into 00:00AA form
if %time1% ==10:34PM goto :ok
goto :start
:ok
:: what to do when time equals 5:00AM
echo what to do when it is 5:00 AM
pause
Tell me how that works and tell me if you need more help
