XCOPY Useful Commands (Exclude temp and Other Folders)

1. Create a File name :c:\ExcludeTheseFolders.txt

2. Edit the File "ExcludeTheseFolders" and insert  the directories that you want to exclude (Follow the format Below):

     \temp\
     \donocopy

3. Create Batch File: BackupFile.bat

4. xcopy "C:\Source\*.*" " C:\Destination\" /s /d  /EXCLUDE:c:\ExcludeTheseFolders.txt
 

 

Let's share thisShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn