i want to be able to upload a page automatically from a file created by VB, which control should i use? does anyone have any exampke code?
Regards
~Chenko
Printable View
i want to be able to upload a page automatically from a file created by VB, which control should i use? does anyone have any exampke code?
Regards
~Chenko
Inet control is the only one I can recommend (if there are any other method, esp API, please let me know!!!!)
See the tutorial on VB Square
http://www.vbsquare.com/articles/inet1/
It is targetted toward web, but same principles for FTP
i was really looking for some simple code to upload to my site, i dont want directory listings, does anyone have an example code/project i can look at?
Simon
Renamed.html iz the file name you want it to be when it'z uploaded!Code:With Inet1
.Protocol = icFTP
.URL = "ftp.bizland.com"
.UserName = "UserName"
.Password = "PassWord"
.Execute , "Put C:\YourFile.html Renamed.html"
End With
ftp.bizland.com iz just an example, but you can use any other ftp server. And if you decided to use an http upload method then I sugest you change the protocal to icHTTP
tried and it runs with no errors but there is no file on my server??? i tried both HTTP and FTP protocol and they dont... wat coud be the Problem?
i have exactly the same problem with both ftp and http
Try the Catalyst SocketWrench package, available at http://www.catalyst.com/. SocketWrench is a free (free for comercial use, too!) ActiveX control that will allow you to open TCP/IP conections of any type. They document the package very well, and give you 9 sample projects including FTP and HTTP access. Very easy to use, and fairly reliable.
Hope this helps.