Backup MyDocuments without backing up Music Folder

G

Guest

Hi,

I am trying to backup my documents folder on windows 2K and XP PC's and am
doing sucessfully with a batch file and using the xcopy command. However I
dont want to backup the Music or the Pictures folder. Does anyone know of a
command that I can use to exclude these 2 folders

ta
 
D

Doug Kanter

GD said:
Hi,

I am trying to backup my documents folder on windows 2K and XP PC's and am
doing sucessfully with a batch file and using the xcopy command. However I
dont want to backup the Music or the Pictures folder. Does anyone know of
a
command that I can use to exclude these 2 folders

ta

The EXCLUDE option should do the trick. See below. The example shown would
stop xcopy from copying any files from a directory called \obj. In your
case, you'd specify the My Music and My Pictures directories.

/EXCLUDE:file1[+file2][+file3]...
Specifies a list of files containing strings. Each string
should be in a separate line in the files. When any of the
strings match any part of the absolute path of the file to be
copied, that file will be excluded from being copied. For
example, specifying a string like \obj\ or .obj will exclude
all files underneath the directory obj or all files with the
.obj extension respectively.


To see other xcopy options, type "XCOPY /? | more" at a command line,
without the quotation marks. The "more" option keeps the text from scrolling
off the screen. Hit any key to see more text.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top