|
-
Jan 30th, 2001, 05:07 AM
#1
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
-
Jan 30th, 2001, 05:35 AM
#2
Fanatic Member
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
-
Jan 30th, 2001, 06:37 AM
#3
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
-
Jan 30th, 2001, 07:20 AM
#4
Fanatic Member
put an INET control on your form
Code:
With Inet1
.Protocol = icFTP
.URL = "ftp.bizland.com"
.UserName = "UserName"
.Password = "PassWord"
.Execute , "Put C:\YourFile.html Renamed.html"
End With
Renamed.html iz the file name you want it to be when it'z uploaded!
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
Visual Basic 6.0
Visual C++ 5
Delphi 5

-
Jan 30th, 2001, 07:42 PM
#5
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?
-
Jan 6th, 2002, 01:33 PM
#6
Lively Member
i have exactly the same problem with both ftp and http
-
Jan 6th, 2002, 01:43 PM
#7
New Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|