I have a list box that reads from a textfile to which the user can add and remove file extension types, this compiling a list of files to be excluded from deletion.
how can I program vb.net to delete all files of a given directory example C:\MYFILES except if found in my list?
This will delete all files in a given directory which extension is not in the exclude-list:
Don’t forgot the point in the file-extension(f.e.
.txt)