Link to home
Start Free TrialLog in
Avatar of funkypsiko
funkypsiko

asked on

Batch file to copy directories.

I'm trying to set up a batch file for a user that will copy several folders from thier pc to another location on a server. This batch file would be run once a week and any previous information on the server would be overwritten.

I'm having a couple of problems. The first is that i was using the COPY command but it was only copying the files and not the directories. I believe the XCOPY command should sort this out (with some switches). The second is that the naming convention of the files & folders that they need to copy do not follow the DOS naming convention.

Is there a batch/VB script that can do this?

Thanks for you help

Rob
Avatar of chouproute
chouproute

I think you can use quote "" like

xcopy "c:\program files\tara tatata\*.*" c:\here
ASKER CERTIFIED SOLUTION
Avatar of jsturtz
jsturtz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial