home bbs files messages ]

Just a sample of the Echomail archive

Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.

   BATPOWER      Batch Language Programming      216 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 21 of 216   
   Richard Webb to all   
   tracking time in a batch, my approach   
   31 Aug 11 02:10:38   
   
   Hi folks,   
      
   A conversation in another echo re timing and 4dos and its   
   variants triggered the thought I should maybe post this in   
   case it's of use to somebody.   
      
      
   A few months ago when I was doing a bunch of updating and   
   upgrading to my dos based network control tracking stuff I   
   decided it might be nice if the program reminded me of   
   certain things that should be done periodically, say at   
   quarter past, the half hour, three quarters past and again   
   when getting time to hand off at the end of my watch.   
      
   So, using horst's little logecho which expresses token uses   
   in its command lines, (used much as echo would be used for   
   the uninitiated) I could then build a batch within the batch which stuffed   
   minutes after the hour into an environment   
   variable called counter.   
      
   then it's easy to trap that variable, branch accordingly.   
      
   An example from my programming ...   
   set counter=   
   echo @echo off >> counter.bat   
   :: next line using horst's logecho sets it up.   
    logecho set counter=$m >> counter.bat   
   call counter.bat   
   del counter.bat   
   cls   
   if %COUNTER%==02 goto begin   
   if %COUNTER%==03 goto begin   
   if %COUNTER%==04 goto begin   
   if %COUNTER%==05 goto fiver   
   if %COUNTER%==07 goto sevens   
   if %COUNTER%==10 goto tenner   
   if %COUNTER%==15 goto quarter   
   if %COUNTER%==20 goto fiver   
   if %COUNTER%==21 goto sevens   
   if %COUNTER%==25 goto fiver   
   if %COUNTER%==28 goto 28   
   if %COUNTER%==30 goto bottom   
   if %COUNTER%==35 goto fiver   
   ...   
      
   So now say at the label fiver I can make the program display the pending   
   traffic list on the screen for one minute,   
   whilst using horst's wait.com to trap the errorlevel   
   according to the keystroke, so I have the menu available,   
   even though menu doesn't show on the screen, but the list of outstanding   
   business does.   
   I hope this is helpful to somebody out there.   
      
      
   Regards,   
              Richard   
   ---   
    * Origin:  (1:116/901)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca