Run Program only once
Posted: Tue Oct 09, 2007 8:02 am
How to control that a program only runs once.
Regards,
Otto
Regards,
Otto
www.FiveTechSoft.com
https://fivetechsoft.com/forums/
Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
IF ISEXERUNNING( CFILENOEXT( HB_ARGV( 0 ) ) )
? "The app is already running"
RETURN NIL
ENDIF
? "This is the app's main loop"
RETURN NIL