Tech Support > Microsoft Windows > Backup MyDocuments without backing up Music Folder
Backup MyDocuments without backing up Music Folder
Posted by GD on March 15th, 2006


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

Posted by Doug Kanter on March 15th, 2006



"GD" <GD@discussions.microsoft.com> wrote in message
news72AC7B0-C0F8-4ED5-A136-46F0BA16FDA7@microsoft.com...
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.




Similar Posts