>When it gets to the run command in the .exe it gives the error
>
>RUN|! command failed.
>
>Like I said, it runs fine in the uncompiledd version of the program.
>
>Thanks.
Richard,
Run command failed could be any of a number of things. 1) the program your are calling is not found, 2) there is not enough memory to load command.com, 3) the configuration of the FOXRUN.PIF file is incorrect, 4) the program you are calling returned an error to DOS, or others.
A common problem is that the memory configuration of VFP is not leaving enough memory to load command.com and run the program you are calling. How much memory is on the machine that fails? You can try using SYS(3050) to set the memory size for VFP's buffers (it is documented in the help file).