如何通过单击按钮打开指定的路径? [英] how to open a specified path by a button click?

查看:115
本文介绍了如何通过单击按钮打开指定的路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过单击按钮在Windows资源管理器中打开指定的路径?


我想启动一个Windows资源管理器窗口,显示指定路径的内容,例如c:\ program files \ adobe.

How can I open a specified path in Windows Explorer by clicking on a button?


I want to launch a windows explorer window showing the contents of a specified path e.g. c:\program files\adobe.

推荐答案

Dim explorerWindow As New ProcessStartInfo("explorer")
Dim winDir As String = "C:\Program Files\Adobe"
explorerWindow.Arguments = winDir
Process.Start(explorerWindow)


这篇关于如何通过单击按钮打开指定的路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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