Transferring multiple files / folders from Windows Explorer to an external application

Hi everyone knows how to make Windows Explorer transfer multiple files / folders to an external application (C #) specified in the registry?

Currently, I can work with a single file / folder using the syntax% 1, but not sure how to get the explorer to go through several elements.

Does anyone know how to do this?

+4
source share
3 answers

When selecting several files in Explorer, the extension of the context menu of the shell IShellExtInit :: Initialize will be called, and pdtobj contains the choice. Note. Writing a managed shell extension is not supported.

+2
source

I do not think that's possible.

When you open several files using Explorer, it launches a separate copy of your program for the file. I do not think this can be overridden.

EDIT : I forgot about shell extensions. It is possible.

To get around this, you could link subsequent copies to the first, and then exit. Detailed instructions for this are beyond the scope of this answer.

+2
source

To do this reliably, you will need to write a shell extension, most likely a sendto implementation.

I did not write one with vb6, but you can find what looks like a good guided example here

Or you can use a free utility

0
source

Source: https://habr.com/ru/post/915925/


All Articles