I am trying to automate a daily process to create a new folder named as the current date, (ie: 08012012) on a remote server via a mapped drive and copy files to that new folder for backup purposes.
I have figured out how to create the new folder and name it by date by researching, but I can't for the life of me get the batch file to copy the files INTO the new folder!
Here's what I have so far...
for /F "tokens=2-4 delims=/- " %%A in ('date/T') do md %%A%%B%%C
xcopy "d:\lw\*.* "%DATESTAMP%" /E /C /I /H /Q
It creates the directory, but it fails from that point on!
Any help would be greatly appreciated!