从域外访问 UNC 共享以进行文件传输 [英] Accessing UNC Share from outside domain for file transfer

查看:28
本文介绍了从域外访问 UNC 共享以进行文件传输的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在域外(在工作组中)有一个 FTP 服务器.我需要使用 FTP 服务器上的 FTP 客户端调用的应用程序将文件移动到使用 VB.net 的域内的共享:

I have an FTP Server outside of the domain (In a workgroup). I need to move files using an application called by the FTP client on the FTP server to a share within the domain using VB.net:

(System.IO.File.Move(SourcePath & Filename, TargetPath & Filename))

(System.IO.File.Move(SourcePath & Filename, TargetPath & Filename))

模拟和映射驱动器都不起作用(因为没有用户登录)这是一个接受上述参数的控制台应用程序.

Impersonation will not work neither will mapping a drive (As no user will be logged on) This is a console application that takes the above parameters.

有什么建议吗?

谢谢.

推荐答案

您或许可以使用 NetUseAdd.这是一篇 CodeProject 文章,描述了如何至少将它用于与您的要求类似的事情:Connect to带有凭据的 UNC 路径

You might be able to use NetUseAdd. Here's a CodeProject article that describes how to use it for something similar to your requirements at least: Connect to a UNC Path with Credentials

这篇关于从域外访问 UNC 共享以进行文件传输的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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