New
#1
Powershell command for deleting everything EXCEPT for...
Hey guys, just wondered if anyone could help me with this.
So basically, I have a directory with a crap ton of subdirectories, each with a crap ton of files in them. The files all have widely varying names (they're all ZIP files so they have the same extension), and I only want to keep the files with a certain string in the filename.
What command would allow me to recursively delete every file except for ones containing this string? Is this even possible via command prompt, or perhaps there's a GUI application that could do it?