FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old July 9th, 2004, 02:24 PM
dosmond dosmond is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 2 dosmond User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 53 sec
Reputation Power: 0
Using Inet1 and mget in VB

I have some VB code which uses inet1 and can "get" single files with no problem. Now I need to use "mget" but do not know how to set the switch so the confirm prompt is not sent when I try to get multiple files. Any help would be greatly appreciated.

FTPGetRoutine_Top:
'Get FTP file
Inet1.Protocol = icFTP
'Inet1.AccessType = icUseDefault
Inet1.AccessType = icDirect
Inet1.UserName = strUserName
Inet1.Password = strPassword
Inet1.URL = "ftp://" & strUserName & ":" & strPassword & "@ftp.mysite.com"
DspStatus.Text = "Connected - Issuing GET"
DspStatus.Refresh
Inet1.Execute , "mget *.*.*.* " + App.Path + "\" + "*.*.*.*.*"
Me.WaitForResponse
If Inet1.ResponseCode = 80 Then
'Kill App.Path + "\smartank" + SavDateTime + ".csv"
MsgBox "ReponseCode: 80"
GoTo FTPGetRoutine_Top
End If
If Inet1.ResponseCode = 123 Then
DspStatus.Text = "FTPGetRoutine Finished - No File"
DspStatus.Refresh
DoEvents
Sleep (5000)
Exit Sub
End If
If Inet1.ResponseCode <> 0 Then
MsgBox "Errorcode: " & Inet1.ResponseCode & " " & Inet1.ResponseInfo
End If
'Inet1.Execute , "QUIT"
'Me.WaitForResponse
DspStatus.Text = "FTPGetRoutine Finished"
DspStatus.Refresh
'
DoEvents
'
Sleep (5000)
'
End Sub

Friend Sub WaitForResponse()
'
Dim fWait As Boolean
fWait = True
Do Until fWait = False
DoEvents
fWait = Inet1.StillExecuting
Loop
'
Exit Sub
End Sub

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > Using Inet1 and mget in VB


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway