vb.net - Loop through folders and only copy files that match certain criteria -
i writing program copies files needed 1 folder another. however, want copy files fit criteria, more specifically, should copy files not in banned files, banned extensions, or banned folders list stored in array this: public bannedextensions string() = {".bak", ".bak2", ".cry", ".max", ".psd", "log", ".lib", "pdb", ".exp"} public bannedfolders string() = {"tools", "editor", "code", "logbackups", "statoscope", "bintemp", "user", "rc"} public bannedfiles string() = {"editor.exe", "error.bmp", "error.dmp", "luac.out", "tags.txt"} the code should move them temporary directory , zip them , save them location stored in file_name variable. this code whole: option strict on public class form1 'define 2 variables used tracking file nam...