inet1 Execute runs forever!
Hello, I have the following code.
Private Sub Form_Load()
With Inet1
.RemoteHost = "***.***.*.***"
.RemotePort = "21"
.UserName = "Administrator"
.Password = "********"
.Execute , "Put GallonageRpt.Exe C:\Program Files\GallonageRpt\"
End With
Do Until Inet1.StillExecuting = False
DoEvents
Sleep 1000
Loop
End
End Sub
When I run this, it does not error out. It does not copy the file, which is under 1 meg. It doesn't seem to do anything, but it says that the execute is still executing.
Anyone have any ideas on this?
thanks
Still won't copy the file
I put that in there, but it still won't work.
It doesn't run forever now, it just doesn't copy the program file over. I can get it to work using a batch file, but not using this control.
With Inet1
.RemoteHost = "10.10.10.10"
.RemotePort = "21"
.UserName = "Administrator"
.Password = "******"
Inet1.Protocol = icFTP
.Execute , "Put GallonageRpt.Exe C:\Progra~1\Gallon~1"
End With
Do Until Inet1.StillExecuting = False
DoEvents
Sleep 1000
Loop