
May 8th, 2008, 04:23 AM
|
 |
Contributing User
|
|
Join Date: Jan 2006
Posts: 64
Time spent in forums: 19 h 29 m 17 sec
Reputation Power: 3
|
|
|
FTP help for vb2005
I think ive got it oinly this is for vb6 im goin to open it up in vb2005 and hopfully it converts and i have minimal problems if any but atm the debugger stops at this line
Code:
FTP.Inet1.Execute , "PUT """ & strLocal & """ " & strRemote
any ideas???? i get a "runtime error 35754 - Unable to connect to host"
Code:
Option Explicit
Dim strRemote As String
Dim strLocal As String
Private Sub Form_Load()
With Form1
Inet1.AccessType = icUseDefault
Inet1.Protocol = icFTP
Inet1.RemoteHost = "funkwhatyouheard.freehostia.com"
Inet1.RemotePort = "20"
Inet1.Password = "password"
Inet1.UserName = "username"
Inet1.RequestTimeout = "180"
End With
Label1.Caption = Inet1.URL
strRemote = "Data\"
strLocal = "c:\Data\storty1.txt"
Inet1.Execute , "PUT""" & strLocal & """ " & strRemote
End Sub
End Sub
Last edited by IMaVBNoob : May 8th, 2008 at 06:38 AM.
|