Note that there are some explanatory texts on larger screens.

plurals
  1. POSetting document as windows explorer drop target with additional arguments
    primarykey
    data
    text
    <p>My application is a sort of "scripting" system. I've made the "scripts" usable as drop targets using info from <a href="https://stackoverflow.com/questions/142844/drag-and-drop-onto-python-script-in-windows-explorer">this answer</a>, however, the default action is to open the script for editing. To run it, you need to pass a <code>/r</code> argument. Is there any way to either: a. use the <em>Run</em> verb, or b. pass the extra argument?</p> <pre><code>Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MyAppJob] @="MyApp Job" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MyAppJob\shell] @="open" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MyAppJob\shell\open] [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MyAppJob\shell\open\command] @="\"C:\\Program Files\\MyApp\\MyApp.exe\" \"%1\" \"%2\" \"%3\" \"%4\" \"%5\" \"%6\" \"%7\" \"%8\"" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MyAppJob\shell\Run] @="&amp;Run" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MyAppJob\shell\Run\command] @="\"C:\\Program Files\\MyApp\\MyApp.exe\" /r \"%1\" \"%2\" \"%3\" \"%4\" \"%5\" \"%6\" \"%7\" \"%8\"" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MyAppJob\shellex] [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MyAppJob\shellex\DropHandler] @="{60254CA5-953B-11CF-8C96-00AA00B8708C}" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.myJob] @="MyAppJob" </code></pre> <p>(Program names have been changed above.) </p> <p>I've tried adding a key <code>"Verb"="Run"</code> to the <code>DropHandler</code> subkey, but of course, it isn't that simple.</p> <p>I know I could set <em>Run</em> as the default verb, but I'd prefer not to have to if at all possible.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload