如何从asp.net中的远程服务器列出所有文件和文件夹 [英] How to list all files and folders from remote server in asp.net

查看:71
本文介绍了如何从asp.net中的远程服务器列出所有文件和文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我们通过输入用户名和密码来进行远程桌面访问,从而访问远程服务器文件和文件夹.现在我的老板希望在asp.net网站上使用它,例如,如果我输入服务器的IP地址以及用户名和密码,则它应该在下拉列表中列出驱动器.如果选择了驱动器,则它应列出其文件夹,如果我们从下拉列表中选择该特定文件夹,则该文件夹中包含的所有文件都应在其他下拉列表中列出.

现在,我唯一想做的就是如何连接到远程服务器,并在下拉列表中列出其所有驱动器.

请帮我. :(


谢谢&问候,
Krunal Panchal

Hello everyone,

We were accessing remote server files and folders by taking remote desktop access by entering username and password. Now my boss wants it in asp.net website, like if I enter my server''s IP address and it''s username and password then it should list drives in a dropdownlist. If a drive is selected then it should list its folders and if we select that particular folder from dropdownlist then all files which are containing in that folder should be listed out in other dropdownlist.

Now only thing I want is how to connect to remote server and list its all drives in dropdownlist.

Please help me. :(


Thanks & Regards,
Krunal Panchal

推荐答案

您是否尝试过 ^ ]?


这篇关于如何从asp.net中的远程服务器列出所有文件和文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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