Skip to content

Instantly share code, notes, and snippets.

@Akhi1
Last active August 15, 2021 16:45
Show Gist options
  • Save Akhi1/29b6bc3c191acada4999ba4f80973cda to your computer and use it in GitHub Desktop.
Save Akhi1/29b6bc3c191acada4999ba4f80973cda to your computer and use it in GitHub Desktop.
If you are on windows10 and want to copy files/folders to another location but also want to exclude certain folders from the source copy location
XCOPY G:\FOLDER1\react-workspace D:\FOLDER2\react-workspace /s /EXCLUDE:avoid.txt

avoid.txt should include the files or folders you want to exclude. In my case, I added node_modules in my avoid.txt

Reference: https://www.lifewire.com/xcopy-command-2618103

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment