Sending files across network
Hello,
Visual Studio 2005
I have a xml file I want to send to a ubuntu server. I have created the xml file using a data table.
Before I was using the following to save on the current machine in the application folder. However, the customer has changed and now wants to store it on a remote network ubuntu server on the network.
What is the best way to send files across the network? Is it possible to send files from a windows machine to a ubuntu server machine?
Many thanks for any advice,
Re: Sending files across network
If you have rights to the machine, then you can simply use File.Copy with the fully qualified path of the network share.
Re: Sending files across network
Hello,
I was thinking of using web client to do this.
However, on the ubuntu server the files will be sent to the following directory /home/test/config.
So I am not sure that I can specifiy the following in the URL class. "[email protected]:/home/test/config"
My application is just a windows application that will have to send this file to the Ubuntu server.
Any more advice would be help,
Re: Sending files across network
A WebClient is for web protocols. You could upload to an FTP server but not to just any folder on any machine. How EXACTLY would you view that location on your Windows machine? If you can't then your app can't either. If you can, how you do it will dictate how your app does it.