请问获取文件夹路径 [英] HOw to get folder path

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

问题描述

如何使用asp.net(C#)获取客户端文件夹路径而不是文件路径。

How to get the client folder path not file path using asp.net (C#).

推荐答案

你不能。

出于安全原因,浏览器不提供该信息。

此外,客户端设备可能不知道路径是什么 - 你无法分辨它是PC,MAC,或者支持互联网的冰箱。
You can''t.
The browser does not provide that information for security reasons.
And besides, the client equipment may not have any idea what a "path" is - you cannot tell if it is a PC, MAC, or internet enabled fridge.


引用:

AppDomain.CurrentDomain.BaseDirectory可能是访问最有用的位置相对于应用程序安装目录的文件。

AppDomain.CurrentDomain.BaseDirectory is probably the most useful for accessing files whose location is relative to the application install directory.


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

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