打开一个文件夹/文件 [英] Opening a folder/file

查看:134
本文介绍了打开一个文件夹/文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想在asp.net中的button_click上打开一个文件夹(此文件夹也包含子文件夹)
我之前使用了以下代码,但在部署后无法正常使用

Hi,

I want to open a folder ( this folder contains sub folders also) on button_click in asp.net
I used the following code earlier but after deployment its not working

System.diagnostics.process.start("explorer.exe","path")



我们可以不使用process.start打开文件夹吗?????

谢谢,
Thirupathi Reddy



Can we open a folder without using process.start?????

Thanks,
Thirupathi Reddy

推荐答案

尝试此
//if you are using C# 
 System.Diagnostics.Process.Start(@"C:\Documents and Settings");

//for vb.net 

AddressOf System.Diagnostics.Process.Start


也尝试这些链接

点击此处 [点击 [
try these links also

Clickhere[^]

Click[^]


这篇关于打开一个文件夹/文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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