I know that this is something simple, but I've spent few hours and could not find anything??? I'm running my foxpro 6 program from dos cmd and need to capture the execution code returned by my program in dos. If it's not possible what would be my alternative to pass the code from app back to OS? Thanks!