>Hi, > I need to run a DOS program in my window VFP application. But how could I get error from it DOS program if to determine successfully? >
One option would be to use API_APPRUN to fire the DOS application - you can check the termination code of the launched executable using the CheckProcessExitCode method.