home bbs files messages ]

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

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

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

   Message 41,169 of 42,547   
   simone.battagliero@gmail.com to All   
   Re: bug in batch loops?   
   13 Jul 15 00:06:31   
   
   Il giorno venerd́ 10 luglio 2015 17:19:13 UTC+2, foxidrive ha scritto:   
   > This line is within a loop and to evaluate a changed variable within a loop    
   > you need to use delayed expansion.   
   >    
   > But with errorlevels you can use this syntax, without delayed expansion.   
   >    
   > if ERRORLEVEL 1 goto :end   
      
   It works now!   
   I did not know delayed expansion, I just assumed that loops in batches behave   
   in the same way as in most programming languages... but ok, there is always   
   something new to learn!   
   Thank you for your help.   
      
   --- 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