Results 1 to 4 of 4

Thread: Sending files across network

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    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,
    steve

  2. #2
    Frenzied Member MaximilianMayrhofer's Avatar
    Join Date
    Aug 2007
    Location
    IM IN YR LOOP
    Posts
    2,001

    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.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    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,
    steve

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width