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,735 of 42,547   
   Herbert Kleebauer to Anton Shepelev   
   Re: Turing-competeness of the batch lang   
   26 Aug 19 17:41:20   
   
   From: klee@unibwm.de   
      
   On 26.08.2019 16:19, Anton Shepelev wrote:   
   > Herbert Kleebauer:   
      
   >>SET S=0;   
   >>for /L %%i IN (1,1,5) DO SET /A S=S+%%i   
   >>echo %S%   
      
   > So, does SET /A imply delayed expantion?  How do I   
      
   There is no expansion of S because neither %S% nor !S! is used.   
   S is just a numeric variable use by "set /a".   
      
      
   > concatenate strings without delayed expansion?   
      
   set a=123   
   set b=456   
   set c=%a%%b%   
   echo %c%   
      
   --- 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