Tweaking.com Support Forums
Main Forum => General Computer Support => Topic started by: Angelika on March 16, 2018, 03:11:18 am
-
How to delete all files by excluding only those files from the list?
-
I would copy & paste that question into a Google search where you will see a number of suggestions.
-
How to use it, step by step. I do not understand anything complicated about it.
https://stackoverflow.com/questions/14775672/delete-all-files-and-folders-but-exclude-a-directory
not directory (only files)
-
Neither did I but there were other links, although I didn't read through them.
Perhaps you should include the type of files you want to exclude in your Google search.
Google can be very helpful but you have to ask it the right questions.
-
use regex and express impossible to match. (?!listyouwanttokeep|two|three).
select all thats left and delete.
SOLVED
-
Good to see that you found something you could use.