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,597 of 68,980   
   Auric__ to John   
   Re: Timer For Loop in Batch File   
   04 Jul 20 15:55:57   
   
   From: not.my.real@email.address   
      
   Kerr-Mudd,John wrote:   
      
   > On Fri, 03 Jul 2020 17:05:41 GMT, Peter  wrote:   
   >   
   >> Auric__   
   >>   
   >> I ran your suggested code but the line:  set /P counter=%counter%+1   
   >>   
   >> causes "0+1" to appear on my screen and nothing further happens.  Any   
   >> thoughts?   
   >>   
   > run   
   > set /?   
   >   
   > then use   
   > set /A   
   >   
   > but I'm out of spoons now.   
      
   Yes, of course. I used the wrong switch, that's all.   
      
     set /a counter=%counter%+1>nul   
      
   --   
   I'm haunted   
   I hate the morning   
      
   --- 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