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,424 of 42,547   
   Kerr Mudd-John to All   
   Re: adding leading zeroes to a numeric v   
   25 Jan 16 21:10:48   
   
   From: admin@127.0.0.1   
      
   On Mon, 25 Jan 2016 16:02:14 -0000, Herbert Kleebauer    
   wrote:   
      
   > 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   
   >   
   >   
   On my PC:   
      
   C:\WINDOWS>convert /?   
   Converts FAT volumes to NTFS.   
      
   CONVERT volume /FS:NTFS [/V] [/CvtArea:filename] [/NoSecurity] [/X]   
      
      volume      Specifies the drive letter (followed by a colon),   
                  mount point, or volume name.   
      /FS:NTFS    Specifies that the volume is to be converted to NTFS.   
      /V          Specifies that Convert should be run in verbose mode.   
      /CvtArea:filename   
                  Specifies a contiguous file in the root directory to be   
                  the place holder for NTFS system files.   
      /NoSecurity Specifies the converted files and directories security   
                  settings to be accessible by everyone.   
      /X          Forces the volume to dismount first if necessary.   
                  All opened handles to the volume would then be invalid.   
      
   Must be some other product!   
      
      
      
   --   
   Bah, and indeed, Humbug   
      
   --- 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