nbrege Posted February 20, 2006 Posted February 20, 2006 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... Quote
Administrators PlausiblyDamp Posted February 20, 2006 Administrators Posted February 20, 2006 The error message pretty much tells you what you need to do - you need to specify a protocol for the upload and a filename. try something like My.Computer.Network.UploadFile("c:test.txt", "ftp://10.2.2.10/test.txt", "username", "password") Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.