1

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))

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.

Any suggestions?

Thanks.

madlan
  • 1,387
  • 10
  • 34
  • 63
  • 1
    What account will the .net application be running in? – DJIDave Nov 02 '10 at 12:22
  • Is the FTP server behind the same router/switch or is it connected to the domain via VPN? – Steve Danner Nov 02 '10 at 12:22
  • The application will be called by the FTP app, which is a service running as Local System. The Server is on the same netword but outside of the firewall, although access has been allowed for UNC file sharing providing an authenticated account is used. – madlan Nov 02 '10 at 12:26

1 Answers1

2

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

Hans Olsson
  • 54,199
  • 15
  • 94
  • 116