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
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