Hi i would like to know how to upload using other code than this on an FTP Server.
upload Code:
My.Computer.Network.UploadFile("c:\File.txt", "http://www.someserver.com/upload.aspx")
tanks
Printable View
Hi i would like to know how to upload using other code than this on an FTP Server.
upload Code:
My.Computer.Network.UploadFile("c:\File.txt", "http://www.someserver.com/upload.aspx")
tanks
any help??
take a look at this sample... it's in C# but that shouldn't be a problem
I have an FTP class...
Let me find it and I will upload it here
Here you go.
5 minutes to find a fileQuote:
Originally Posted by kleinma
You should consider using a desktop search app http://www.vbforums.com/images/ieimages/2006/06/1.gif
I do use one (Windows Desktop Search).. I had to remove to proprietary code from the file before uploading it ;)
ComputerJy the link u gave me is for C# i'm using VB.NET 2005.
kleinma, i've tried ur code but it was a little bit hard to understand to me. i don't see the place where to put the username password file to upload... ,if there is a much simple code can u tell me
tanks
Well I've tried your FTP class, but it's not working I've wrote this code
vb Code:
f.RemoteUser = "username" f.RemotePassword = "password" f.RemoteHostFTPServer = "username.9999mb.com" f.UploadFile("c:\temp\index.html")
it's showing me this error
Cannot connect to remote server.
and shade this line
vb Code:
Throw New IOException("Cannot connect to remote server.")
is there a solution for this?
tanks
I would guess that you need a full url like ftp://[email protected]
for the ftp host? or? remote host?
tanks
does someone know how to make it upload?