Jump to content

How to remove selections from entire selection?


Recommended Posts

Hi guys,

I have a new question about using the Windows Explorer to select files.Normaly I can use the mouse to select all files at once I want or just all files by using ctrl+A.Now I would like to know whether there is any method to make a more specific selection without to do it manually with the mouse.

So I would like to make a selection with mouse of all files I want in a folder and now I would like to make it specific like to remove every second selection without using the mouse for it.You know what I mean?

Example: Lets say there is a folder with many files and some of them using diffrent extensions but same filename.Now I sort them by name and get listet all one by one...

file_1.ex
file_1.rx
file_2.ex
file_2.rx
file_3.ex
file_3.rx

...and now I select all you can see above with the mouse (all other files in folder not) but now I want to remove all selected files with the .rx extension from my selection or just removing every second selected line from my selection.How?Is that doable without using the mouse to make those steps manually?So in this example I can do it manually when there are just few files but what when having a bunch of it?Just looking for a quicker method if possible.

greetz

Link to comment

There is no simple standard way to do what you need

You can Group by->Item type and then use shift to select all the same file types or alternatively you can use the search box like .rx to view just them file types then select all and do what you need

Other than that then you could code your own DLL Right click COM Object with custom selection options with options to select all by filetype etc. but I have no idea how to code that is ASM

  • Like 1
Link to comment
  • 2 weeks later...
CodeExplorer

why with the mouse?
i recommend to use command prompt and use something like:
del *.ex
 

Link to comment
  • 4 weeks later...
On 2/21/2022 at 10:57 PM, LCF-AT said:

How?Is that doable without using the mouse to make those steps manually?So in this example I can do it manually when there are just few files but what when having a bunch of it?Just looking for a quicker method if possible.

I needed something similar to make sorting / moving / deleting lots of files easier / quicker so i coded a simple shell extension to give windows a new custom select right click context menu...

CustomSelect.JPG.0399a6f3f1549b77d9d683fb57bba2f4.JPG

Its not exactly what you were looking for but you are welcome to try it if its of any use to you :)

Custom Select x32 x64.rar

 

 

Edited by NOP
Add changes
  • Like 1
Link to comment

Hey NOP,

thank you for this tool and trying to code anything. :) So its nice so far to make some more specific selections but as you said already its not that what I'am looking for 100%.So what about if you could change your code so that I can make those selections ALSO when I have selected files.In your case it does select / handle all files in a folder and not just only the files which I have selected manually.Would be possible to code that.So the minimum I need to have selected is ONE file to get your app context to see (custom select) and now I can choose the diffrent options.So when I have selected just ONE file then you could use your code for ALL files in a folder = handle all, but when I have selected MORE THAN ONE file = 2 or more THEN your app could just handle all selected files only.What do you think?Then your app would work as I needed it. :)

PS: Good work so far NOP. Just add my idea as I told then its GREAT work. :)

greetz

Link to comment

I have added 2 more options to de-select alternate files from your current selection

Post above updated!

  • Thanks 1
Link to comment

Hi NOP,

thanks for the update but I don't get any new De-Select entrys to see in your new version. :( Also your latest version still has same version 1.0 in about box.

CustomSelect64.dll
998 KB (1.022.464 Bytes)

CustomSelect64.dll <-- lastest
999 KB (1.022.976 Bytes)

But its not working to get those new entrys to see.Just check this again.

PS: I tried to unreg / reg few times (old/new file) but I don't get new de entrys to see when I have selected files.Best is if you check this out again and also change the version number in your about box so that I can see that a other version is also working here you know.Thanks.

greetz

Link to comment
R0ttenK4ne

As i read your @LCF-AT question i was thinking the same as before i read CodeExplorer's posting with the command line.😉

Do you know strg+mouse-click too?
So you can select as example file1, then file3 then file 7 and so on.

There are many ways i think...
You could copy your files in a separate folder and delete then the folder and files.

Why reinvent the wheel?

Link to comment

Hi @R0ttenK4ne,

sure I do know strg+mouse & click. :) Do you think I'am so stupid du kleiner frecher Sack! ;)

You have to read what I told before, I don't want to select manually in case of MANY files. Lets say I have selected 200 files and now I need to de-select 100 manually? How long should I do this to get the rest of 100 files un-selected. I also don't wanna move files from work folder to other folder to do the selection stuff etc.

NOP did already a tiny tool what can do de-select now. Bye the way @NOP, just wanna say that your small app works now today. I tried it out right now and I get those 2 new de- entrys to see to de-select from selection. Yesterday they wasn't shown. Somehow your app did need a re-boot. Now it works. Great work NOP and thank you again. :)

greetz

Link to comment
On 4/5/2022 at 8:11 PM, LCF-AT said:

Bye the way @NOP, just wanna say that your small app works now today. I tried it out right now and I get those 2 new de- entrys to see to de-select from selection. Yesterday they wasn't shown. Somehow your app did need a re-boot. Now it works. Great work NOP and thank you again. :)

Sorry for late reply, I been without internet all week

I would have suggested a reboot after unregistering and possibly deleting the dll before registering the new version because it also caches it but it seems its now working for you after a reboot

Sorry about the version number, I forgot to update it but I will change it if I make any changes or if you want it changed & uploaded

Is it working ok for you and doing what you need?

  • Like 1
Link to comment

Hi sNO(o)Py, :)

thanks again so far. Your app seems to work as it should. Only thing I see is that in some cases your app does start a new explorer instance with new selected files. I think its just happen when a folder has many files right? Otherwise all working and at the moment I have no new ideas what you could add but if I got some more then I will tell you NOP. Muchas Gracias MuGringo. :) 

greetz

  • Like 1
Link to comment

ok with out the mouse.
@echo off

echo Select files you whant

pause
explorer.exe /select,c:\windows\system32\selected_file.txt //change to you directory and files

pause

cmd cd patch\to\the_files del *.rx

Edited by Underground
  • Like 1
Link to comment
23 hours ago, LCF-AT said:

Only thing I see is that in some cases your app does start a new explorer instance with new selected files. I think its just happen when a folder has many files right?

It seems to be a glitch with SHOpenFolderAndSelectItems

It is supposed to use existing explorer instance but it seems sometimes it opens new once then uses that new for everything

Anyway I made 1 final change if you are interested (Dynamically created submenu based on your current selection)...

CustomSelect.JPG.0da7748c3b900b7fa71dfaa6f4face2b.JPG

Custom Select x32 x64.rar

😀

  • Thanks 1
Link to comment

Hi again,

@Underground As I told before I don't wanna use with any batch files in this case when I can be just quicker with the mouse you know. This is just too limited and waste of time (just talking about this special case only not at all).

@NOP Ah ok I see, so its not really a bad issue when it just starts are new instance and I just did wonder why it happens in some cases. So about your new option you did add to de-select specific extension files X from selection. You said "(Dynamically created submenu based on your current selection)" what means you just check all file extension before and do create the menus then right? Sounds pretty nice. :) I did download your latest version and did unreg the old and reg the new file but its still using the old version like last time. Seems I have to reboot again. I'll reboot later and test your new version right after or at the latest tomorrow. Thanks again so far and nice idea NOP. :)

greetz

  • Like 1
Link to comment

Hi @NOP,

ok I have test it now and it seems to work pretty nice and version 1.1 is ready to use. :) If you got some more nice ideas then just tell us but at the moment I'am already satisfied with this version. Thanks again and keep on rolling. 🛼 :)

greetz

  • Like 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...