连接到网络驱动器的用户名和密码 [英] Connect to network drive with user name and password

查看:925
本文介绍了连接到网络驱动器的用户名和密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何提供凭证,这样我可以连接到网络驱动器在.NET?

How do I supply credential so that I can connect to a network drive in .NET?

我想从一个网络驱动器检索文件,并需要提供用户凭据访问驱动器。

I’m trying to retrieve files from a network drive and need to supply user credentials to access the drive.

推荐答案

在一个恒定的痛苦中的 * 的,因为我需要连接到AS / 400,Linux和Solaris网络共享之上的Windows的。

A constant pain in the *, since I need to connect to AS/400, Linux and Solaris network shares over and above Windows ones.

我使用的是Win32 API的封装之一。特别是这个类,它的大多数管道的照顾。

I'm using one of the Win32 API wrappers. Specifically this class that takes care of most of the 'plumbing'.

退房code项目的文章: 连接到具有凭据的UNC路径

Check out the Code Project article: Connect to a UNC Path with Credentials

这篇关于连接到网络驱动器的用户名和密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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