1.

Solve : unsure how to execute this timed batch?

Answer»

I plan to place a shortcut to my streamrecorder in my startup folder so it RUNS  when windows  starts. how would i structure my batch so it runs when windows starts but only if its between 7:00 pm  and 9:00 pm. I don't want to use scheduler because if there'a a power cut at say 6:58 and power returns at 7:02 i want my stream recorder to still kick in. Any ideas guys. runnin XP by the way.


echo off
start streamrecorder
check the value of %time% at startup
baby LANGUAGE plz, i just started learning batch files a few days agoPlease start a command window and type the following at the prompt

echo %time%


and tell us the result.


we need to know your system time format (12 hour with AM/PM, or 24 hour)
Sorry for the delay in responding, situations beyond my control.
Here's the info u asked for 1:53:45.32. I use the 12 hour clock format. Quote from: haxxx on February 16, 2010, 11:57:00 PM

Here's the info u asked for 1:53:45.32. I use the 12 hour clock format.

no 'am' or 'pm'?

ok i re-entered the echo %time% at 8:28 pm, i got
20:26:22.00So, this is what you want.

echo off
set tme=%time::=%
if %tme% GEQ 190000.00 if %tme% LEQ 210000.00 start streamrecorderthanks guys will give it a shot.

HaxxxIf it doesn't work, remove the .00 from the if commands.


Discussion

No Comment Found