XCOPY question

JJADAMS

Member
Nov 1, 2002
161
0
0
Hi all, I am trying to create a batch file for back ups. This is on a windows XP and 2000 machines. For example

xcopy E:\*.doc D:\backup\jjadams\ /s
xcopy E:\*.xl* D:\backup\jjadams\ /s
xcopy E:\*.ppt D:\jjadams\ /s
xcopy E:\*.wk* D:\jjadams\ /s
This all works great!

I have multiple customers I support and would like to click on a batch file, have it back up all the files and walk away. One directory I back up is Documents and settings, instead of putting in the userID everytime, I would rather copy the whole directory. What would be the best way for this? would it go like this?

xcopy "e:\documents and settings\*.*" "d:\jjadams" /s /h

I am new if you can' ttell :) Thanks for all your help in advance