Hi,
Have a look at robocopy if using vista or above.
>Hi All experts, I am trying to make a quick backup program to copy files from a folder from hard disk to a usb hard disk.
>I have used the normal copy command eg "copy file (cFrom) to (cTo)" which works fine but does not copy the sub-directories.
>If I use the xcopy using "run xcopy (cfrom) (cTo)" works fine as long as I dont have gaps in the folder names, like trying to copy
>"My Documnts". My question is, how can I copy all the specied files in a folder plus sub-folder withor without gaps in the folder names ??
>TIA
Regards N Mc Donald