>Does anybody know how to return the 'errorlevel' variable from MS-DOS either using the getenv or another method. I believe that VFP5.0 reads all the MS-DOS variables on entry. But does it use those read results or the variable at the time of checking?
You might SET a variable in the batch file (if ERRORLEVEL=.. SET ... = ..) and read that Variable using getenv.
HTH,
Marc
If things have the tendency to go your way, do not worry. It won't last. Jules Renard.