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 42,203 of 42,547   
   Ammammata to All   
   Re: zip files in separate files accordin   
   11 Apr 23 09:49:12   
   
   From: ammammata@tiscali.it   
      
   It happens that Herbert Kleebauer formulated :   
   > for /l %i in (2010,1,2022) do copy 2023.zip %i.zip   
      
   well, I didn't know this "from--step--to" format, thank you   
      
   FOR /L %variable IN (start,step,end) DO command [command-parameters]   
      
       The set is a sequence of numbers from start to end, by step amount.   
       So (1,1,5) would generate the sequence 1 2 3 4 5 and (5,-1,1) would   
       generate the sequence (5 4 3 2 1)   
      
   It will work fine, I'll test it later, this evening   
      
   --   
   /-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\   
   -=- -=- -=- -=- -=- -=- -=- -=- - -=-   
   ........... [ al lavoro ] ...........   
      
   --- 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