Windows 上“打开方式”对话框的可执行文件

roo*_*oot 2 windows windows-7 windows-explorer

如何从命令行和其他程序打开 Windows 中的“打开方式”对话框?类似openwith.exe myfileexplorer.exe --openwith-dialog myfile

har*_*ymc 6

可以从命令行打开“打开方式”对话框,如下所示:

Rundll32 Shell32.dll,OpenAs_RunDLL any-file-name.ext
Run Code Online (Sandbox Code Playgroud)

请注意,在执行对话框之前不会检查文件名是否存在,因此如果文件不存在,“未找到”错误消息只会在执行后到达。