View Single Post
Old May 31st, 2006, 1:52 AM   #6
dakota
Newbie
 
Join Date: May 2006
Posts: 2
Rep Power: 0 dakota is on a distinguished road
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
dakota is offline   Reply With Quote