I am having a problem getting a vb program to send an exit code back to a calling system on another machine. The program is relatively simple it reads a sql 7 db to get a file number and the creates a lan directory using that number and moves files from a lan directory that recieves the files from a mainframe job to the newly created directory. this job is started remotely by a vendor system and runs by itself with no interaction. if it abends I need to set an exit code or return code to let the calling system know it has abended.