Im new to VB and i want to know is there a way to put pauses between ftp commands.
Ex.
login
pause (for a few seconds)
cd \blahblah
pause (for a few seconds)
get blahblah.txt
well you get my point.
thx all in advance.
Printable View
Im new to VB and i want to know is there a way to put pauses between ftp commands.
Ex.
login
pause (for a few seconds)
cd \blahblah
pause (for a few seconds)
get blahblah.txt
well you get my point.
thx all in advance.
Well, you could write a PAUSE function (see code). The one below supports milliseconds, so if you want to wait 2 and a half seconds between commands then use GoSleepy 2.5
Hope this helps...
Code:Public Function GoSleepy(MSeconds)
Dim StartTimer As Long
StartTimer = Timer
Do Until Timer > StartTimer + MSeconds: DoEvents: Loop
End Function