What I tried was using My.Computer.Network.DownloadFile(), and created a shared folder in the other computer to do downloading stuff.
But, in fact I didn't know how to fill the path to the other computer, the error was: "...path not supported..."
How about this:

    ServerName1 = cmbServerName1.Text.Trim()
    database = cmbDataBase1.Text
    If objdlg.ShowDialog = DialogResult.OK Then
            My.Computer.Network.DownloadFile(New Uri("\\" & cmbservername1.Text & "\SharedNow\"), "C:\database.txt")
    EndIf

Okay, that's what I did, and it's not working. Could someone help me, pls?

Recommended Answers

All 2 Replies

I've been successful in using IO.File.Copy when transfering files to and from another computer.
IO.File.Copy("\\" & cmbservername1.Text & "\SharedNow\database.txt", "C:\database.txt")

Thks a lot, I'll change my code in your way and give it a try. ^^

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.