本文介绍了在ButtonClick中打开第三方应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在我的按钮点击中打开第三方应用程序。 例如:打开photoshop,或者在我的表单按钮单击中打开游戏。可能吗?
How can I open a third party app in my Button click. For Eg: Open photoshop, or a game in my Forms Button Click. Is It Possible?
推荐答案请看这里:流程类 [ ^ ]但是你可能想用它打开一个文件。通常提供文件名作为参数是足够的(就像你在cmd窗口中那样),但这取决于应用程序本身。 我可以建议首先用记事本测试这个。然后尝试通过提供文件名(包括路径)打开带有记事本的文件,然后检查其他应用程序。 希望这会有所帮助。 Look here: Process class[^] However you probably want to open a file with it. Often it is sufficiant to provide the filename as an argument (as you would do in a cmd window), but that depends on the application itself. May I suggest to test this first with something like notepad. Then try to open a file with notepad by providing the filename (including the path) and then check other applications. Hope this helps.
更多推荐
在ButtonClick中打开第三方应用程序
发布评论