I want to execute a dir command but exclude some files from the result.
for example in a dir I have:
also I have a txt file which is located in "C:blacklist.txt" which has this entries:
now I want to use something like this:
dir C:\Folder /exclude=C:\blacklist.txt
and the result would look like this:
xcopy has exclude, any chance at dir command?
The Problem is that I will need the listed files excluded on the fly, means I can't use the method:
dir all files/folders, have them printed into a txt file and then use loop to delete the files in blacklist.txt
Thanks in advance!