Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I need to send a text file on the local machine to a unix server. I know the IP address, username & password to connect. I have tried using the following line of code:

 

My.Computer.Network.UploadFile("c:\test.txt", "10.2.2.10", "username", "password")

 

This gives me the following error:

 

'10.2.2.10' is not a valid remote file address. A valid address should include a protocol, a path and a file name.

Parameter name: address

 

Do I have to specify the destination path on the remote server? If so how do I specify that with an IP address? Maybe like this ... 10.2.2.10/foldername/subfoldername/etc... ?

 

I am able to ping the server & get a response. I am also able to send the file using the Dos ftp command. I just don't know the proper syntax in VBexpress. Thanks for any help...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...