xcopy help please, what to type.

dave343

[H]ard|Gawd
Joined
Oct 17, 2000
Messages
1,869
Hi, I need help creating a batch file for xcopy that will copy everything from my e: drive to c:\backup\files\server need subfolders included and hidden files. Thanks in advance for any help.
 
xcopy /?

I think /E /q /y /k might be a start.

Experiment. Copying is safe.
 
XCOPY source [destination] /h /i /c /k /e /y

I think that should do it. I remember this one because of the word it spells out. That should copy everything hidden, in sub-directories, recurse the directories in the destination, etc, etc. Like Iomn said, xcopy /? will help out there... lots of options to choose from.

You can throw in a /q if you don't want to see everything as it's going. Personally, I like looking at thousands of files scrolling across the screen.
 
Also useful is the "only if file is updated" switch. Might be /d.
 
Back
Top