Hi, I want to know how the explorer launches an exe with the dropped file --Noviez
Noviez wrote: > Hi, > I want to know how the explorer launches an exe with the dropped file Can you be more specific? At a Wild guess, I'd say ShellExecute with the filename passed as the full parameter string. This is born out by a test app that just shows the param string in a messagebox. -- Dean Earley (dean.earley@icode.co.uk) i-Catcher Development Team iCode Systems
Noviez wrote: > I want to know how the explorer launches an exe with the > dropped file The ".exe" file class has a drop handler (registered under HKCR\exefile\shellex\DropHandler) that extracts the CF_HDROP filenames from the data object and passes them on the command line via ShellExecuteEx. An application can also register a drop target under its "App Paths" key, which will be used in preference to the generic drop handler. -- Jim Barry, Microsoft MVP
"Jim Barry" wrote: > Noviez wrote: > > I want to know how the explorer launches an exe with the > > dropped file > > The ".exe" file class has a drop handler (registered under HKCR\exefile\shellex\DropHandler) that extracts the CF_HDROP filenames from the data object and passes them on the command line via ShellExecuteEx. An application can also register a drop target under its "App Paths" key, which will be used in preference to the generic drop handler. > > -- > Jim Barry, Microsoft MVP > hi, this was informative..... but i have a problem.. i tried launching the same file as cmdline directly but the exe didnt processed the file.... its working on files that r being dropped on it... any way to over com this --Noveiz
Noviez wrote: > > "Jim Barry" wrote: > >> Noviez wrote: >>> I want to know how the explorer launches an exe with the >>> dropped file >> The ".exe" file class has a drop handler (registered under HKCR\exefile\shellex\DropHandler) that extracts the CF_HDROP filenames from the data object and passes them on the command line via ShellExecuteEx. An application can also register a drop target under its "App Paths" key, which will be used in preference to the generic drop handler. >> >> -- >> Jim Barry, Microsoft MVP >> > > hi, > this was informative..... > but i have a problem.. i tried launching the same file as cmdline > directly but the exe didnt processed the file.... its working on files that r > being dropped on it... > any way to over com this The easiest way is to run process explorer and see what the command line passed to the application was. -- Dean Earley (dean.earley@icode.co.uk) i-Catcher Development Team iCode Systems