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,421 of 42,547    |
|    Herbert Kleebauer to Jean-Pierre Coulon    |
|    Re: adding leading zeroes to a numeric v    |
|    25 Jan 16 17:02:14    |
      From: klee@unibwm.de              On 25.01.2016 11:29, Jean-Pierre Coulon wrote:       > 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?              convert can use wildcards itself:              convert *.jpg *.gif              --- 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