Export only the filters created by myself?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Export only the filters created by myself?

Post by Biff »

How could one export / import special filters only to avoid duplicates after importing? E.g. export only the filters created by myself?

Image
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Export only the filters created by myself?

Post by NotNull »

It seems that all the filters are exported.
As the export file is a CSV file (plain text), you can open it in (for example) Notepad and delete all the lines you don't want to import later on.


"Plan B":
This CMD command creates per filter a .csv file, using the "all-in-one" export.csv as input.

Code: Select all

for /f "skip=1 delims=," %X in (export.csv) do @(findstr /b "Name, \"%X\" " export.csv >"export_%~X.csv")
Resulting (on my system) in following CSV files:

Code: Select all

export.csv
export_AUDIO.CSV
export_COMPRESSED.CSV
export_DOCUMENT.CSV
export_EVERYTHING.CSV
export_EXECUTABLE.CSV
export_FOLDER.CSV
export_PICTURE.CSV
export_VIDEO.CSV
And - for exampe- export_AUDIO.CSV looks like:

Code: Select all

Name,Case,Whole Word,Path,Diacritics,Regex,Search,Macro,Key
"AUDIO",0,0,0,1,0,"ext:aac;ac3;aif;aifc;aiff;au;cda;dts;fla;flac;it;m1a;m2a;m3u;m4a;mid;midi;mka;mod;mp2;mp3;mpa;ogg;ra;rmi;spc;rmi;snd;umx;voc;wav;wma;xm","audio",
Now you can import indivual filters.
Last edited by NotNull on Thu Jun 08, 2017 6:17 pm, edited 1 time in total.
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: Export only the filters created by myself?

Post by Biff »

Many thanks.
It seems that all the filters are exported.
As the export file is a CSV file (plain text), you can open it in (for example) Notepad and delete all the lines you don't want to import later on.
Yes, a good idea. I am not quite sure if I am (always) able to find out where a single filter starts and ends.

Yes, plan b sounds good, but I do not have any idea where / how to add that code. I guess somewhere here:
Image
or
here: https://www.voidtools.com/support/every ... interface/

How do I have do change the code?
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Export only the filters created by myself?

Post by NotNull »

* in CDD.exe go to the folder where you saved export.cmd
* do a DIR *.CSV to make sure you are in the right folder (it should show you export.csv)
* when in that folder, paste the command posted earlier and run it.
* do a DIR *.CSV to make sure that the individual filters are created

That's it.
2017-06-08 20_21_07-TCC20.png
2017-06-08 20_21_07-TCC20.png (16.42 KiB) Viewed 7690 times
I will post a script later on (1 minute work, but got some other things to do). That way you can drag/drop export.csv to that script and that will create the individual CSV's for you.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Export only the filters created by myself?

Post by NotNull »

Here you go (not tested ..)
EDIT: In the meantime I did test it. It works.

SPLIT_EXPORT.CMD

Code: Select all

@for /f "skip=1 usebackq delims=," %%X in (%1) do @(findstr /b "Name, \"%%X\" " %1 >"%~dnpn1_%%~X.csv")
Save as split_export.cmd and drag/drop the export.csv to this script.

(Could not attach .CMD script, so this is a workaround
Last edited by NotNull on Thu Jun 08, 2017 8:32 pm, edited 1 time in total.
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: Export only the filters created by myself?

Post by Biff »

I cannot find CDD.exe on my system...

...ah, a script, done very fast, many thanks.

...yes, I just tried it, too, works great. I see, the csv name must be "export", not e.g. "Filter", etc. And there may not be contained a space in the path to the folder containing SPLIT_EXPORT.CMD, e.g. Eigene Dateien/SPLIT_EXPORT.CMD

Great, very easily to handle. Thank you very much!
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Export only the filters created by myself?

Post by NotNull »

Oops, that's a lot of errors in one message. Thought I could do it quickly... Bad choice!

CDD.exe should read: CMD.exe

I updated the original SPLIT_EXPORT.cmd script. Please update your current version.
It now supports file- and directorynames that include spaces.
Furthermore: if you exported to a CSV named "My Filters (2017-06-08).csv", the script will create "My Filters (2017-06-08)_AUDIO.csv" etc.

Please note: if the exact same filename already exists, it will be overwritten. Backup the old version if needed.

Good luck!
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: Export only the filters created by myself?

Post by Biff »

Oops, that's a lot of errors in one message. Thought I could do it quickly... Bad choice!
Very sorry, I didn't intend to cheapen your work, it worked very well anyway, I appreciate it very much!

Yes, I just updated the cmd file and tried the new version, works perfectly.

Great, now it works even better.

Very many thanks, very happy about it.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Export only the filters created by myself?

Post by NotNull »

Biff wrote:
Oops, that's a lot of errors in one message. Thought I could do it quickly... Bad choice!
Very sorry, I didn't intend to cheapen your work
[/quote]

That thought hadn't crossed my mind. At all ...

It's merely a reminder to myself: don't do multiple things at once and certainly not when you are in hurry! (TBH: this is not the first time I had to say that to myself...)

Glad you like it!
Post Reply