How can I open the "Open with" dialog in Windows from command line and other programs? Something like openwith.exe myfile or explorer.exe --openwith-dialog myfile
Answer
The "Open with" dialog can be opened from the command line as follows :
Rundll32 Shell32.dll,OpenAs_RunDLL any-file-name.ext
Note that the file-name is not checked for existence before the execution of the dialog, so if the file doesn't exist the "not found" error message will only arrive afterward.
No comments:
Post a Comment