I have the following line to run an FTP script which transfers a file to a remote server and records the log in 'FTPoutput':
Shell "cmd /c ftp -s:" & FTPscript & " > " & FTPoutput
I want a msgbox to pop up after the transfer completes indicating that it was successful. Right now I have:
Application.Wait Now + TimeValue("00:00:25"
Then I search for the line in the log that starts with "250" indicating a successful transfer. However, the file transfer varies from 10 - 35 seconds, so is there a way I can wait for the command shell to close before searching the log??
Shell "cmd /c ftp -s:" & FTPscript & " > " & FTPoutput
I want a msgbox to pop up after the transfer completes indicating that it was successful. Right now I have:
Application.Wait Now + TimeValue("00:00:25"
Then I search for the line in the log that starts with "250" indicating a successful transfer. However, the file transfer varies from 10 - 35 seconds, so is there a way I can wait for the command shell to close before searching the log??