Page 1 of 1

select all folders with exclusion

Posted: 22 Jan 2021 09:24
by swan_x
i need script or shortcut to select all folder except 2 specified folders.
is good by "selection filter" put name of folder that i want to keep, then "invert selection", but i need simply command or shortcut or script
because my origin folder changes, it's not always the same...
tanxs to everybody for your help.

Re: select all folders with exclusion

Posted: 22 Jan 2021 09:43
by highend
selectitems formatlist(listpane(, , 2+4), "F", , "!" . "folder 1|folder 2");

Re: select all folders with exclusion

Posted: 22 Jan 2021 10:10
by swan_x
wow! many tanxs. really what i wanted...
command not easy anyway.... alone i would never get there. Thank you

Re: select all folders with exclusion

Posted: 22 Jan 2021 14:24
by swan_x
this command work fine.

another request: if i want delete all folder selected ... how to?
i have try with:

Code: Select all

delete 0, 0, formatlist(listpane(, , 2+4), "F", , "!" . "folder 1|folder 2");
but without success...

Re: select all folders with exclusion

Posted: 22 Jan 2021 14:58
by highend
delete 0, 0, formatlist(listpane(, , 2), "F", , "!" . "folder 1|folder 2", "f");

Re: select all folders with exclusion

Posted: 22 Jan 2021 17:19
by swan_x
yes, work fine.
many tanxs for your help.