Sample batch file to create daily folder folder for archiving (and move file into the archive folder)
Posted on 2010-08-30
Everyday our server recieves several files in a inbound folder. The next daythe files are overwritten as they have the same names.
Is there a sample batch file where I can add to a daily 6am scheduled task to create a new daily folder by YYYYMMDD and move al the file into the new folder?
e.g. inbound folder c:\inbound\
location for archive folder - c:\archive\<YYYYMMDD>
Action - (1) create new daily folder YYYYMMDD in c:\archive\ , (2) move c:\inbound\*.* to c:\achive\YYYYMMDD
This batch file / scheuled task will run on a Windows 2008 server.