使用凭据C#Windows在域之间进行文件传输 [英] File transfer across domains using credentials c# windows

查看:188
本文介绍了使用凭据C#Windows在域之间进行文件传输的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C#2008中,我试图将文件复制到目标路径(例如\ newserver \ destinationFolder),该路径可以在另一个域中,也可以使用与当前用户不同的用户名/密码.在执行File.Copy(...)之前如何指定这些新的网络凭据?

请为我提供一种使用凭据将文件复制到远程服务器的方法..

谢谢inadvance ....

in c# 2008, I''m trying to copy a file to a destination path (for example \newserver\destinationFolder), that can be in another domain or using a different username/password than the current user. How can I specify these new network credentials before doing the File.Copy(...) ?

pls guide me a way to copy file onto remote server with credentials..

Thanks inadvance... .

推荐答案


这篇关于使用凭据C#Windows在域之间进行文件传输的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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