>Is there any method to obtain the DOS ERRORLEVEL return after calling a DOS command or .EXE with '!'
Under VFP5/6 you can use my API_APPRUN class rather than the native RUN command; the CheckProcessExitCode method will return the termination code. The class can be downloaded from the Files section here on UT.