按下按钮-打开文件夹 [英] Button press - opens the folder
本文介绍了按下按钮-打开文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好!
我需要创建按钮单击事件的帮助,这将打开文件夹...
任何人都可以发布带有此类按钮事件操作的代码段吗?
文件夹应该像往常一样在Windows资源管理器窗口中打开.
问候.
Hello guys!
I need help creating the button click event, that will open the folder...
Can anyone post a code snippet with such button event action?
Folder should be opened in windows explorer window, as usual.
Regards.
推荐答案
在按钮上单击尝试此".
On button click Try this.
Process.Start(@"C:\YourFolder\");
Process类存在于System.Diagnostics
命名空间中.
The Process class exists in System.Diagnostics
namespace.
这篇关于按下按钮-打开文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文