mjs84
Aerospace
- Aug 20, 2003
- 27
Hi,
I am FTP-ing a file from the PC world to the UNIX world using an FTP command. Right now I am using a Shell command to accomplish this FTP:
Call Shell(stSYSDIR & "ftp.exe -s:" & "c:\temp\ftpinput.txt", vbNormalFocus)
where
"stSYSDIR" is c:\winnt\system32\ and
"ftpinput.txt" contains my login and 'put' information.
This works fine for one file at a time. When I have this call within a loop and sending more than one file, I error out and I think it's because the FTP is too slow to keep up with the VB code.
My Question(s):
Is there a better way to do FTP from VB?
Is there a 'wait' command that I can put after the FTP to allow it to catch-up to the VB?
I know I can group the files together and use mput...but that causes more problems than I think it will solve.
Thanks for any help.
I am FTP-ing a file from the PC world to the UNIX world using an FTP command. Right now I am using a Shell command to accomplish this FTP:
Call Shell(stSYSDIR & "ftp.exe -s:" & "c:\temp\ftpinput.txt", vbNormalFocus)
where
"stSYSDIR" is c:\winnt\system32\ and
"ftpinput.txt" contains my login and 'put' information.
This works fine for one file at a time. When I have this call within a loop and sending more than one file, I error out and I think it's because the FTP is too slow to keep up with the VB code.
My Question(s):
Is there a better way to do FTP from VB?
Is there a 'wait' command that I can put after the FTP to allow it to catch-up to the VB?
I know I can group the files together and use mput...but that causes more problems than I think it will solve.
Thanks for any help.