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 68,791 of 68,980   
   Anton Shepelev to All   
   Re: ENDLOACAL & CALL ... fails to expand   
   16 May 24 01:47:45   
   
   From: anton.txt@gmail.moc   
      
   I wrote:   
      
   > What I need now is not a solution to any problem, but an   
   > explanation why my original example does not work as I   
   > expect it to.   
      
   Looks like the following interpretation sequence explains   
   it:   
      
   0. ENDLOCAL & CALL ECHO REF points to: [%%%REF%%%]   
   1. Expand variables in the entire line:   
      ENDLOCAL & CALL ECHO REF points to: [%VAL%]   
   2. Execute ENDLOCAL (losing VAL)   
   3. Execute CALL, expanding %VAL% into an empty string:   
      ECHO REF points to: []   
      
   --   
   ()  ascii ribbon campaign -- against html e-mail   
   /\  www.asciiribbon.org   -- against proprietary attachments   
      
   --- 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