Soldato
- Joined
- 1 Sep 2005
- Posts
- 10,001
- Location
- Scottish Highlands
Im trying to make a batch file to automate my backup. But ive come across a problem with folders that have spaces in them, as its seeing it as the end of the command. For example;
ROBOCOPY C:\Documents and Settings\Administrator\Favorites\ X:\Favorites\ *.* /S /PURGE >>X:\Backuplog.txt
Is producing errors in the "C:\Documents and Settings\" bit. Ive tried adding "" around the whole path, but that doesn't seem to work either. Any ideas?
ROBOCOPY C:\Documents and Settings\Administrator\Favorites\ X:\Favorites\ *.* /S /PURGE >>X:\Backuplog.txt
Is producing errors in the "C:\Documents and Settings\" bit. Ive tried adding "" around the whole path, but that doesn't seem to work either. Any ideas?