From: veronique.forier@gmail.com   
      
   Op vrijdag 14 mei 1999 09:00:00 UTC+2 schreef Bill James:   
   > There was a similar request in this group within the past week. Walter   
   > Zachary provided a very simple solution, which I have adapted here for your   
   > example of running a command only if before 8:00 am:   
   >    
   > ::TimeRun.bat Run command only if (before 8:00am).   
   > @ECHO OFF   
   > %1 %0 rem 12 a 1 a 2 a 3 a 4 a 5 a 6 a 7 a   
   > :loop   
   > vol | time | find " %2:" | find "%3" > nul   
   > if not errorlevel 1 goto start   
   > if not %4[==[ for %%? in (shift shift goto:loop) do %%?   
   > goto end   
   > :start   
   > echo Command line for your batch file goes here.   
   > :end   
   >    
   > Very easy to adapt to other time frames.   
   > --   
   > Bill James   
   >    
   > Paul wrote in message   
   > news:XED_2.21$in4.507748@news1.van.metronet.ca...   
   > > By do something, yes, I mean run a command to call another .BAT file.   
   > > By "after specific times", yes, I mean after a certain time of the day.   
   > > OS is standard MS-DOS running underneath Windows 95/98.   
   > >   
   > > Here would be an example of what I wish to do in psudeo code:   
   > >   
   > > if before 8am, then run command batch file xyz   
   > >   
   > > Hope this makes things clearer.   
   > >   
   > > Paul   
   > >   
   > > In article , william.g.james@cwix.com   
   > > says...   
   > > >   
   > > >You haven't given us much to go on. Do "something" is pretty vague, but   
   > I   
   > > >suppose you want to run some command or program. By "after specific   
   > times"   
   > > >do you mean after a after a certain time of the day, or ...? Then, the   
   > > >answer often depends on what OS you are running. Please post again with   
   > a   
   > > >little more information.   
   > > >--   
   > > >Bill James   
   > > >   
   > > >Paul wrote in message   
   > > >news:izm_2.21$pM3.981869@news1.van.metronet.ca...   
   > > >> I need to do something in a .BAT DOS file only after specific times   
   > > >according   
   > > >> to my PC's clock. Can anyone provide an example of how to do this?   
   > > >>   
   > > >> thx,   
   > > >> Paul   
   > > >>   
   > >   
      
      
      
   Op vrijdag 14 mei 1999 09:00:00 UTC+2 schreef Bill James:   
   > There was a similar request in this group within the past week. Walter   
   > Zachary provided a very simple solution, which I have adapted here for your   
   > example of running a command only if before 8:00 am:   
   >    
   > ::TimeRun.bat Run command only if (before 8:00am).   
   > @ECHO OFF   
   > %1 %0 rem 12 a 1 a 2 a 3 a 4 a 5 a 6 a 7 a   
   > :loop   
   > vol | time | find " %2:" | find "%3" > nul   
   > if not errorlevel 1 goto start   
   > if not %4[==[ for %%? in (shift shift goto:loop) do %%?   
   > goto end   
   > :start   
   > echo Command line for your batch file goes here.   
   > :end   
   >    
   > Very easy to adapt to other time frames.   
   > --   
   > Bill James   
   >    
   >    
   I found this post and it's exactly what i need but i can't get it working   
   'cause i'm completely new in working with batch files. Do i get it right that,   
   when i copy the sample program (::TimeRun.bat ..up to.. :end) into a   
   test.bat file and then    
   manually enter "test" + tap "enter" at the dos prompt in the right directory,   
   while my pc time < 8am, it should show on the screen "Command line for your   
   batch file goes here." ? Well, it doesn't, not even when i leave the line   
   "@echo off" : please help !   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|