如何使用.net代码将文件从RDC复制到本地桌面 [英] how to copy files from RDC to local desktop using .net code

查看:139
本文介绍了如何使用.net代码将文件从RDC复制到本地桌面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我必须将某些文件从远程桌面复制到本地桌面。如何使用C#.net

解决方案

如果您按照这些步骤(只是正常的<$ c),您可以将文件从远程计算机复制到本地系统$ c> \\computername\share \ ... copy):



http://haacked.com/archive/2010/05/18/remote-desktop-file-copy.aspx [ ^ ]


尝试

使用远程管理员凭据将文件复制到远程计算机 [ ^ ]

建议参考链接: -

http://msdn.microsoft.com/en-us/library/aa385413%28VS.85%29.aspx [ ^ ]

LogonUser功能 [ ^ ]

使用C#进行Windows模拟 [ ^ ]


 File.Copy(\\remotemachinename \ localpathonremotemachine \ file。 TXT, C:\localpath\file.txt); 


In my application I have to copy certain files from remote desktop to my local desktop. How can i do this using C# .net

解决方案

You can copy files from them remote computer to your local system if you follow these steps (just a normal \\computername\share\... copy):

http://haacked.com/archive/2010/05/18/remote-desktop-file-copy.aspx[^]


Try
Copy file to remote computer using remote admin credentials[^]
Suggested Reference Link :-
http://msdn.microsoft.com/en-us/library/aa385413%28VS.85%29.aspx[^]
LogonUser function[^]
Windows Impersonation using C#[^]


File.Copy( "\\remotemachinename\localpathonremotemachine\file.txt","C:\localpath\file.txt");


这篇关于如何使用.net代码将文件从RDC复制到本地桌面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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