

InterviewSolution
Saved Bookmarks
1. |
Solve : unsure how to execute this timed batch? |
Answer» <html><body><p>I plan to place a shortcut to my streamrecorder in my startup folder so it <a href="https://interviewquestions.tuteehub.com/tag/runs-246860" style="font-weight:bold;" target="_blank" title="Click to know more about RUNS">RUNS</a> 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 <a href="https://interviewquestions.tuteehub.com/tag/xp-747558" style="font-weight:bold;" target="_blank" title="Click to know more about XP">XP</a> by the way.<br/><br/><br/>echo off<br/>start streamrecorder<br/>check the value of %time% at startup<br/>baby <a href="https://interviewquestions.tuteehub.com/tag/language-246575" style="font-weight:bold;" target="_blank" title="Click to know more about LANGUAGE">LANGUAGE</a> plz, i just started learning batch files a few days agoPlease start a command window and type the following at the prompt<br/><br/>echo %time%<br/><br/><br/>and tell us the result.<br/><br/><br/>we need to know your system time format (12 hour with AM/PM, or 24 hour)<br/>Sorry for the delay in responding, situations beyond my control.<br/>Here's the info u asked for 1:53:45.32. I use the 12 hour clock format. Quote from: haxxx on February 16, <a href="https://interviewquestions.tuteehub.com/tag/2010-290294" style="font-weight:bold;" target="_blank" title="Click to know more about 2010">2010</a>, 11:57:00 PM</p><blockquote>Here's the info u asked for 1:53:45.32. I use the 12 hour clock format.<br/></blockquote> <br/>no 'am' or 'pm'?<br/><br/>ok i re-entered the echo %time% at 8:28 pm, i got <br/>20:26:22.00So, this is what you want.<br/><br/>echo off<br/>set tme=%time::=%<br/>if %tme% GEQ 190000.00 if %tme% <a href="https://interviewquestions.tuteehub.com/tag/leq-541106" style="font-weight:bold;" target="_blank" title="Click to know more about LEQ">LEQ</a> 210000.00 start streamrecorderthanks guys will give it a shot.<br/><br/>HaxxxIf it doesn't work, remove the .00 from the if commands.</body></html> | |