making a backup script
So i googled about a bit and found the following command to drop into a batch file to copy files about, but it doesn't quite work.
I get the following error (in attachment);
xcopy c:\Hornresp\* c:\Hdata\%date:~0,3%\* /Y /Q /S
Many thanks to anyone who can shed light on why this might not be working for me.
Your date formatting isn't correct I'd say. What is it you're trying to show with that?
Currently you're taking the first 3 letters, aka 02/ 02 is being added, then your / is making the next part a switch. I'm assuming you either want 0,2 or something totally diff? :D
The following will give you the date in YYYY-MM-DD format if that's of any use?
awesome this worked a treat - thanks guys.
Originally Posted by Arthur