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,481 of 42,547    |
|    Jean-Pierre Coulon to foxidrive    |
|    Re: SET in a loop in a script is ignored    |
|    10 Oct 16 15:47:49    |
      From: coulon@cacas.pam.obs-nice.fr              On Mon, 10 Oct 2016, foxidrive wrote:              > I'll add some breadcrumbs here. Hansel and Gretel would appreciate it.       >       > @echo off       > for /L %%a in (1, 1, 5) do (set /a myvar="2*%%a+1" & call echo %%myvar%%)              Thanks for that one :-)              --       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