I am trying to xcopy specific folders from some directory to another folder, problem is i don’t want to copy all the folders but i want specific folders. E.g. DirectorySource has folders (folderA,folderB,folderC) but i want to copy folderA and folderB only to DirectoryDestination.
I am trying to xcopy specific folders from some directory to another folder, problem
Share
Create a text file, say
C:\excludes.txtwith the following contents:then you can copy:
The file excludes.txt contains a list of strings, one per line. If a file or directory matches that string, then it will not be copied. If you want to exclude folder, it is safer to use the above string instead of simply
folderC, which might skip a file calledfolderC_listing.txt