86930

Accessing UNC Share from outside domain for file transfer

Question:

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.

Answer1:

You might be able to use <a href="http://msdn.microsoft.com/en-us/library/aa370645%28VS.85%29.aspx" rel="nofollow">NetUseAdd</a>. Here's a CodeProject article that describes how to use it for something similar to your requirements at least: <a href="http://www.codeproject.com/KB/IP/ConnectUNCPathCredentials.aspx" rel="nofollow">Connect to a UNC Path with Credentials</a>

Recommend

  • Looping files in bash
  • Inno Setup FileCopy failing
  • The process cannot access the file because it is being used by another process.c#
  • VBA - open excel, find and replace, delete row, save as csv
  • css font-size and line-height not matching the baseline
  • UML diagram generator in Visual Studio 2010
  • Graceful pod termination
  • insert a picture into database(sqlite) with java code. what should i do?
  • Getting error java.io.FileNotFoundException (log4j log file) at the time of publish project on cloud
  • What is this strange character in chrome's resource css viewer?
  • Is there any way to call saveCurrentTurnWithMatchData without sending a push notification?
  • Angular2 - Template reference inside NgSwitch
  • Error in installing package: fatal error: stdlib.h: no such file or directory
  • Is there a way to save the selected text and highlight it again once the page is refreshed?
  • Debugging VB6 Code From Visual Studio 2010
  • how to upload multiple files in c# windows application
  • Switching to Release Build causes runtime error in Web Reference
  • How to install a .deb file on a jailbroken iphone programmatically?
  • Handling un-mapped Rest path
  • How to rebase a series of branches?
  • Azure Cloud Service Web Role web pages do not load
  • Get object from AWS S3 as a stream
  • How would I use PHP exceptions to define a redirect?
  • Cross-Platform Protobuf Serialization
  • Validaiting emails with Net.Mail MailAddress
  • Timeout for blocking function call, i.e., how to stop waiting for user input after X seconds?
  • Do I've to free mysql result after storing it?
  • Rearranging Cells in UITableView Bug & Saving Changes
  • Circular dependency while pushing http interceptor
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Linker errors when using intrinsic function via function pointer
  • Windows forms listbox.selecteditem displaying “System.Data.DataRowView” instead of actual value
  • InvalidAuthenticityToken between subdomains when logging in with Rails app
  • Proper folder structure for lots of source files
  • Load html files in TinyMce
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • coudnt use logback because of log4j
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • How does Linux kernel interrupt the application?
  • reshape alternating columns in less time and using less memory