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,474 of 42,547    |
|    Jean-Pierre Coulon to All    |
|    SET in a loop in a script is ignored    |
|    10 Oct 16 08:33:51    |
      From: coulon@cacas.pam.obs-nice.fr              why can't I change a variable ? If I type set/a mavar=some expression before,       the result comes at each ECHO line.              for /L %%a in (1, 1, 5) do (       (set /a myvar="2*%%a+1")       echo %myvar%)              Quotes don't change anything.              Regards,       --       Jean-Pierre Coulon              --- 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