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,676 of 42,547    |
|    John Harris to All    |
|    Re: Any suggestion - Create directory ba    |
|    13 Jun 13 08:02:13    |
      From: john.harris57@gmail.com              This may explain it better.              What I would like to do is take a file called (eg) EW120613001.pdf and save it       into \\server\share\FOLDER\1st 6 digit ddmmyy from filename \EW120613001.pdf              1. Characters 1,2 ignore       2. Digits 3-8 (6 digit ddmmyy) from filename       3. Creates directory based on the 6 digits, if not there       4. If the directory is already there create Nul Errors.       5. Move the file into the directory.              Hope that a better explanation.... first one was a bit vague!!!! :@}              File name = EW120613001.pdf before       File name = EW120613001.pdf after              Using the 120613 part from the file name for the directory name.              thanks              JH              --- 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