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 40,680 of 42,547   
   foxidrive to John Harris   
   Re: Any suggestion - Create directory ba   
   14 Jun 13 06:31:46   
   
   From: not@this.address.invalid   
      
   On 14/06/2013 05:45, John Harris wrote:   
   > Hi foxi   
   >   
   > If I want to use a folder to drop files into to would it be best to use the   
   FOR /R statement?   
      
   @echo off   
   for %%a in (*.pdf) do call :next "%%a"   
   pause   
   goto :EOF   
      
   :next   
   set "file=%~1"   
   set "datestamp=%file:~2,6%"   
   md "\\server\share\FOLDER\%datestamp%" 2>nul   
   move "%file%" "\\server\share\FOLDER\%datestamp%"   
      
      
      
      
   --   
   foxi   
      
   --- 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