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,416 of 42,547    |
|    Jean-Pierre Coulon to All    |
|    adding leading zeroes to a numeric varia    |
|    25 Jan 16 11:29:37    |
      From: coulon@cacas.pam.obs-nice.fr              I know how to do @FOR /L %%A IN (1,1,200) DO (convert p%%A.jpg p%%A.gif)              but I will obtain p1.jpg ... p10.jpg ... p100.jpg ... and I want p001.jpg ...       p010.jpg ... p100.jpg ... This because most cameras and image-processing       applications speak like this. How can I cause the %%A variable to vary with       leading zeroes?              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