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,600 of 68,980   
   Philip ROBYN to All   
   Re: Timer For Loop in Batch File   
   04 Jul 20 23:07:35   
   
   From: probyn@berkeley.edu   
      
   On Saturday, July 4, 2020 at 8:55:58 AM UTC-7, Auric__ wrote:   
   > 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   
      
   Or maybe just   
      
        set/a counter += 1   
      
   --- 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