Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Excluding files with Robocopy

Posted on 2007-11-16
7
Medium Priority
?
28,420 Views
Last Modified: 2014-06-10
I have an established RoboCopy script that I use when a user gets a new PC to copy files from My Documents from the current PC to the user’s new PC. I need to be able to exclude files like MP3, WMA etc. I know you have to use the /XF command, but I am not able to find a good example. Can someone help?
0
Comment
Question by:Mister_Spock
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 19

Expert Comment

by:darron_chapman
ID: 20302240
robocopy [source directory] [destination directory] /S /XF *.mp3 *.wma *.avi etc...
0
 
LVL 3

Author Comment

by:Mister_Spock
ID: 20304364
Are there commas (,) in between each file type?
0
 
LVL 19

Accepted Solution

by:
darron_chapman earned 2000 total points
ID: 20304373
No, they should just be space delimited.
1
The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

 
LVL 3

Author Closing Comment

by:Mister_Spock
ID: 31409681
Thank you
0
 

Expert Comment

by:rmassro
ID: 22599585
How do exclude system files? I rather not to /XF *.system files etc.?
0
 

Expert Comment

by:choccolade
ID: 26281190
@rmassro: /XA:S excludes files that have the system attribute set
0
 

Expert Comment

by:gbcalm
ID: 37801629
can you use an input file to put the excluded file list into  the way you could include options under xcopy? so instead of having to list each file type on the command line you could reference a file that contains all the file types to be excluded?
0

Featured Post

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question