Windows copy files and exclude folders (node_modules)
Minh Hiệp
1 min read
excludes.txt
node_modules
.metadata
.idea
.next
Xcopy /I /S /E <SourceDir> <TargetDir> /EXCLUDE:excludes.txt
# Example: Xcopy /I /S /E C:\Users\hiepn\Desktop D:\Backup\Desktop /EXCLUDE:excludes.txt
0
Subscribe to my newsletter
Read articles from Minh Hiệp directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by