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