Windows 10 How to add context menu item to Windows Explorer for both folders and files together?

  • Thread starter Thread starter zweigs Korba Shael
  • Start date Start date
Z

zweigs Korba Shael

Guest
from:"How add context menu item to Windows Explorer for folders"so,

I know that one can add a key under

HKEY_CLASSES_ROOT\Directory\Background\shell with "command" subkey with default value as path for executable with %1 as arguments for folders and also separately

HKEY_CLASSES_ROOT\*\shell with same way of doing but for all files this time.

But THING is to select both files and folders at one time and process it. How to add context menu item to Windows Explorer for both folders and files jointly?

I would like to get both files and folders as parameter arguments for program but now I face other difficulty: I get only one file name even when I select many files or folders.

I tried to change subkey default value with path to program to following: "appName %*" so it is %* instead of %1 but it fails to pass any file name to my program. How to get all selected file names as array of arguments on start of my program?

More...
 
Back
Top