We created a program that has a mix of forms and hard coding that has a .prg file as our main file. Now when we compile and run it within Foxpro it runs fine, with the interface console/form staying open after compile and run. But when we converted it into a .exe file, it just runs the first login and just exits onto desktop. Our program console does not stay open. Please advise.

.exe does not stay open on desktop
troy2
You are missing a READ EVENTS.
Read the help on this very important command.
In short:
Create a prg where you set your environment and instance your main menu and/or form.
* Main.prg
SET EXCLUSIVE OFF
SET MULTILOCKS ON
* etc
DO MENU MiMenu
DO FORM MiForm
READ EVENTS
* here goes cleanup code
QUIT
In the Exit option in your form or menu you do a CLEAR EVENTS. That takes you out of the running program and gets you back to Main.prg to clean up and quit.
Also look at help for ON SHUTDOWN.
Bedasy
Thank you very much. Problem solved.