I have a VB program that uses DOS FTP to send/receive files. My question is can I error trap so if the FTP process did not work, I can display an error message? Here is what I am currently doing:
dReturnValue = Shell("C:\Windows\FTP.exe
-i -s:c:\FTPscr2.txt", vbMaximizedFocus)
The return value is not a consistent number so I can't use it in an If/Else statement. It's value is around -330091 to -401225 without any consistency. Any Ideas?