1.

Solve : using XCOPY when directory has a space in name?

Answer»

I got the "START" command to work when the APP name has a space in it, but now having the same problem with XCOPY. The DIRECTORY I want to copy has a space in it (Ham Radio) and the command fails. The same fix USED for START doesn't seem to apply to XCOPY.
Trying to set up a batch file that will copy this dir and sub-dirs to another drive (XCOPY C:\Ham Radio D:\Ham Radio)

Thanks in advance!
Doc
If you are USING DOS/Batch programs with a space in a path then you need to put "" around the path e.g. Code: [Select] Xcopy /s "c:\ham radio" "D:\Ham radio"
also the '/s' switch copies all subfolders including empty ones.

FBThanks! I don't think I tried that COMBINATION of quotes. Will give it a shot when I get home thisafternoon!

That did it!

Thanks again!



Discussion

No Comment Found