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,171 of 42,547   
   foxidrive to simone.battagliero@gmail.com   
   Re: bug in batch loops?   
   11 Jul 15 01:19:10   
   
   From: foxidrive@server.invalid   
      
   On 11/07/2015 01:10, simone.battagliero@gmail.com wrote:   
      
   >   if not "%ERRORLEVEL%" == "0" goto :end   
      
   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   
      
   --- 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