home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

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

   Message 67,974 of 68,980   
   R.Wieser to All   
   Re: add a counter to the batch file   
   30 Nov 22 13:44:12   
   
   From: address@not.available   
      
   Ammammata,   
      
   The below is a basic example of how to implement a counter.  I'm sure that   
   with a bit of work you will be able to incoorporate it into your own batch.   
   :-)   
      
   - - - - - - - - - - - - - - - - - -   
   setlocal ENABLEDELAYEDEXPANSION   
   set COUNT=0   
      
   for %%v in (a b c d) do (   
     set /A COUNT=!COUNT! + 1   
     echo Count = !COUNT!   
   )   
   - - - - - - - - - - - - - - - - - -   
      
   By the way : not my work, I just found it on the web somewhere and have kept   
   it for future usage.   
      
   Regards,   
   Rudy Wieser   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

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


(c) 1994,  bbs@darkrealms.ca