I'm trying to write a batch file that will perform incremental backups each night. The file looks like this:
The last two XCOPY commands work fine. The first one, however, yields the following error:
xcopy "c:\Users\davalynn\My Documents" "Z:\Backups\davalynn backup\My Documents" /h /r /s /e /i /c /y /d
xcopy "c:\Users\davalynn\AppData\Roaming\Thunderbird\Profiles\vdkm8ik1.default" "z:\Backups\davalynn backup\vdkm8ik1.default" /h /r /s /e /i /c /y /d
xcopy "c:\Users\davalynn\Favorites" "z:\Backups\davalynn backup\Favorites" /h /r /s /e /i /c /y /d
All the directories referenced in the batch file exist on the Z:\ drive - I created them myself. There must be a syntax problem somewhere, and I've been looking at it for so long I can't see it.
Unable to create directory - Z:\Backups\davalynn backup\My Documents
File not found - *.*
0 File(s) copied
Any suggestions (other than to use something other than XCOPY) would be greatly appreciated.