Answer the question
In order to leave comments, you need to log in
Opening multiple files in one copy of the program through the Windows context menu
Required:
Pack the selected files under a password and upload the archive to a file sharing service
Method:
In Windows Explorer, select several folders and files, then right-click the context menu, and select the previously added context menu item (indicates the packaging and upload software)
What happens now:
Added registry key HKEY_CLASSES_ROOT\*\shell\software_name\command\path_to_software.
Several copies of the program open. And only folders or only files.
What you need:
So that all selected files and folders are transferred to one copy of the program.
Examples:
Can serve as WinRar or 7Zip
Well, the question is how to implement it?
Or perhaps there are ready-made solutions
Answer the question
In order to leave comments, you need to log in
If you are interested in software implementation, then this is done by writing an extension for the explorer. Implementation of the COM interface IContextMenu and so on. Here is the article www.rsdn.ru/article/winshell/shlext7.xml
This is exactly what WinRAR and 7zip do. There are other techniques, but they are also related to COM.
If you are interested in a ready-made solution, then there are programs that allow you to do this, for example
www.freewebs.com/dengdun/en/openxx.htm
There you can add your team in the settings and select Associate With: Multiple Files.
There is no Windows at hand now to check. But I remember that when you specify the path to the program in this way, the line "%1" after the name of the executable means that the file is called to run, and the parameter will be passed to it ... passed ... or maybe not passed ...
In general, try this:
HKEY_CLASSES_ROOT\* \shell\soft_name\command\path_to_software.exe %1
And smoke here:
msdn.microsoft.com/en-us/library/windows/desktop/cc144171 (v=vs.85).aspx
>In general, try this:
>HKEY_CLASSES_ROOT\*\shell\software_name\command\path_to_software.exe %1
it is
>To transfer all selected files and folders to one copy of the program.
usually done like this: at startup, the program checks for the presence of an already running instance, and if it finds it, it somehow passes the name of the file to be opened to it and ends. I understand correctly that you are interested in software implementation? Or do you want to get by with OS settings alone? If the latter, then remember that in WinXP the maximum command line length is about 8k characters.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question