如何获取所选文件夹的路径 [英] How to get the path of selected folder

查看:65
本文介绍了如何获取所选文件夹的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

文件上传控件仅选择文件路径,
在文件上传的情况下,当我单击目录时,它不显示路径.
但是当我单击文件时,它会显示文件名.

当我单击任何驱动器的文件夹时,我想获取目录的路径.

请帮帮我.

在此先感谢

hi all,

File upload control select only the path of files,
in the case of file upload when i click on directory it does not show the path.
but when i click on file it shows the file name.

I want to get the path of directories when i click on folder, any drive.

please help me.

Thanks in advance

推荐答案

string filename = Path.GetFileName(FileUploadControl.FileName);


这篇关于如何获取所选文件夹的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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