borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (How to change the chmod before or during ftp)Next Topic (How to pull data from web page an insert in db) New Topic New Poll Post Reply
AndreaVB Forum : Internet Applications : how to use inet.execute to download a file
Poster Message
Chidaz
Level: Whizz Kid


Registered: 29-06-2006
Posts: 15

icon how to use inet.execute to download a file

I have tried several times to get inet.execute to download a file but i cant get it working. I m using the below line of code:

with inet1
               .Protocol = icFTP
               .AccessType = icUseDefault
               .URL = strURL
               .UserName = strUser
               .Password = strPWD

               .Execute strFile, "GET"
                Do While Inet1.StillExecuting = True
                   DoEvents
                   Call Sleep(5)
               Loop
               .Execute, "QUIT"
end with

looking for State = icResponseCompleted

but its getting stuck on the below state

Case icReceivingResponse
            AddMessage "Receiving Response"


Does anyone have a bit of code/advice to get this to work

05-07-2006 at 10:32 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Internet Applications : how to use inet.execute to download a file
Previous Topic (How to change the chmod before or during ftp)Next Topic (How to pull data from web page an insert in db) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder