none
How to add context menu item to Windows Explorer for both folders and files together? RRS feed

  • Question

  • from:"https://stackoverflow.com/questions/20449316/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?
    Monday, December 9, 2019 4:28 PM