Tweaking.com Support Forums

Main Forum => General Computer Support => Topic started by: Angelika on March 16, 2018, 03:11:18 am

Title: [solved] How to delete all files by excluding only those files from the list?
Post by: Angelika on March 16, 2018, 03:11:18 am
How to delete all files by excluding only those files from the list?
Title: Re: How to delete all files by excluding only those files from the list?
Post by: Boggin on March 16, 2018, 07:16:48 am
I would copy & paste that question into a Google search where you will see a number of suggestions.
Title: Re: How to delete all files by excluding only those files from the list?
Post by: Angelika on March 16, 2018, 08:21:10 am
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)
Title: Re: How to delete all files by excluding only those files from the list?
Post by: Boggin on March 16, 2018, 08:45:35 am
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.
Title: How to delete all files by excluding only those files from the list?
Post by: Angelika on March 18, 2018, 03:48:50 am
use regex and express impossible to match. (?!listyouwanttokeep|two|three).
select all thats left and delete.
SOLVED
Title: Re: [solved] How to delete all files by excluding only those files from the list?
Post by: Boggin on March 18, 2018, 03:54:20 am
Good to see that you found something you could use.