如何以编程方式打开运行窗口 [英] How to open the Run window programmatically

查看:48
本文介绍了如何以编程方式打开运行窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每个人都知道可以使用快捷方式 Windows+R 打开的运行窗口,或者直接在 Windows 菜单中然后运行.
我想知道如何以编程方式打开此运行窗口.
此窗口似乎是 explorer.exe 的一部分.
有人对此有想法吗?

Everyone knows the Run window that you can open with the shortcut Windows+R or directly in the Windows menu then Run.
I'm wondering how to open this Run window programmatically.
This window seems to be part of explorer.exe.
Does anyone have an idea on it ?

推荐答案

您可以使用 IShellDispatch::FileRun 来实现这一点.

You can use IShellDispatch::FileRun to achieve this.

有关详细信息,请参阅使用 Windows 运行文件对话框 - 记录和未记录的方式和示例代码.

See Using the Windows RunFile dialog - The documented and undocumented way for details and sample code.

这篇关于如何以编程方式打开运行窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆