查看另一台计算机上的文件和文件夹 [英] view the files and folders on another computer's

查看:104
本文介绍了查看另一台计算机上的文件和文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想用DirectoryInfo(或类似的东西)查看另一台计算机驱动器上的文件和文件夹的最简单的例子.另一台计算机与我的计算机位于同一本地网络上,但需要我自己的凭据以外的凭据.

将使用DirectoryInfo()的程序代码将在我的本地计算机上运行,​​并且我以用户"A"的身份登录到我的本地计算机.

该程序将尝试访问另一台计算机驱动器上的文件夹和文件.另一台计算机不允许用户"A"访问,但允许用户"B"访问.我知道用户"B"的用户标识和密码,并想在我的程序代码中使用它,以及DirectoryInfo()对象,以查看另一台计算机上的文件.
有人能帮我吗,很坦克

hi ,
I would like the simplest example of using DirectoryInfo (or something similar) to view the files and folders on another computer''s drive. The other computer is on the same local network as my computer, but requires credentials other than my own.

The program code that will use DirectoryInfo() will run on my local machine, and I am logged into my local machine as, say, user "A".

The program will attempt to access folders and files on the other computer''s drive. The other computer doesn''t allow access by user "A", but does allow access by user "B". I know the userID and password for user "B" and would like to use that in my program code, along with the DirectoryInfo() object, to view the files on the other computer.
can anyone help me , very tanks

推荐答案

这样看起来会有所帮助:
Directory.GetCurrentDirectory方法 [ ^ ]
相关读物:
目录方法 [
Looks like this will help:
Directory.GetCurrentDirectory Method[^]
Related reads:
Directory Methods[^]


这篇关于查看另一台计算机上的文件和文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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