I cannot figure out how to get a return code from an .exe executed with the run command. I also cannot figure out how to get it from the dos command either when running a batch file. Its being returned when the application finishes. I have to check it to make sure the application finished properly so that I can do the file transfer if it does not finish properly then I do not want to transfer the file.