|
-
Jul 23rd, 2001, 05:19 AM
#1
-
Jul 23rd, 2001, 05:51 AM
#2
-
Jul 23rd, 2001, 06:03 AM
#3
Hyperactive Member
check out this post by smalig
http://www.vbforums.com/showthread.p...threadid=91105
change his code to this
VB Code:
Screen.MousePointer = vbHourglass
Inet1.URL = "ftp://ftp.myhost.com"
Inet1.UserName = "myuser"
Inet1.Password = "mypass"
Inet1.Protocol = icFTP
Inet1.Execute Inet1.URL, "get /myfolder/myfile.txt c:\myfile.txt "
Do While Inet1.StillExecuting
DoEvents
Loop
Screen.MousePointer = vbDefault
hope this helps
-
Jul 23rd, 2001, 06:28 AM
#4
Thanks for that but I need it for a HTTP url not an FTP one.. the home page for the server (example: http://www.mydomain.com) isn't password protected, but http://www.mydomain.com/visualbasic/ is. I need to be able to log in using Visual Basic, go to that directory, enter the required username and password, and download a file (called secret.frm).
Any help is greatly appreciated.
-
Jul 23rd, 2001, 07:46 AM
#5
Junior Member
it should be the same with HTTP as FTP, only change
to
try that, I haven't done it before, but it seems logical
-
Jul 23rd, 2001, 08:25 AM
#6
Thanks for that.. Tried it, no luck though
-
Jul 23rd, 2001, 09:41 AM
#7
-
Jul 23rd, 2001, 12:01 PM
#8
Addicted Member
Try this: "Dunno if it will work or not, but it should."
Code:
Screen.MousePointer = vbHourglass
Inet1.URL = "http://username:[email protected]"
'Inet1.UserName = "myuser"
'Inet1.Password = "mypass"
'Inet1.Protocol = icFTP
Inet1.Execute Inet1.URL, "get /myfolder/myfile.txt c:\myfile.txt "
Do While Inet1.StillExecuting
DoEvents
Loop
Screen.MousePointer = vbDefault
I dont think you should need the three lines I commented out.
If that doesn't work maybe try
Hope that helps.
-
Jul 23rd, 2001, 03:12 PM
#9
It worked! Thanks
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
|