A friend gave me a batch file for me to configure and schedule to run my own backups, but it's not working.
Here is the original file:
xcopy C:\Mydocu~1\*.* g:\backup\Mydocuments\*.* /k/r/y/c/h/e/f
xcopy C:\MyFile~1\*.* g:\backup\My Files\*.* /k/r/y/c/h/e/f
xcopy C:\Mypict~1\*.* g:\backup\Mypictures\*.* /k/r/y/c/h/e/f
xcopy C:\MyBusi~1\*.* g:\backup\MyBusinessInformation\*.* /k/r/y/c/h/e/f
xcopy C:\MyCHOf~1\*.* g:\backup\MyCHOfiles-inactive\*.* /k/r/y/c/h/e/f
xcopy C:\Docume~1\owner\*.* g:\backup\DocumentsAndSettings\owner\*.* /k/r/y/c/h/e/f
First question: What do the switches mean (/k/r/y/c/h/e/f)? I've searched online, but haven't found answers.
Second related question: I'm using Windows XP and whenever I've customized this to work on my machine (substituting the correct names and paths), it either won't work (is this because one of the users I'm trying to back up has an "&" in the name?) or, if I bypass the "&" in the command, it only performs the first five backup operations, but not the rest.
Also, where can I go to learn about simple batch files and how to troubleshoot them?
Thanks for the help--I'd like to get this resolved today, if possible, which is why I'm giving it 500 points.