Windows copy files and exclude folders (node_modules)
Jun 27, 2022 · 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
Copy