One way I've done similar is to create an object that attaches to _SCREEN, and in that object.Destroy, I set the _SHELL system variable to "DO mystartup.prg". Any thing in _SHELL is immediately executed, and then is cleared.
So, anything that causes the object in _SCREEN to go away (CLEAR ALL) restarts things again. * mystartup.prg ? "Started" * * Whatever you need to do goes here... * _SCREEN.AddObject("wsx","mystart") && attach the object to _SCREEN DEFINE CLASS mystart AS Custom FUNCTION Destroy _SHELL = "DO mystartup.prg" ENDFUNC ENDDEFINE Hope that's clear enough for you to see how to do it. Fred On Fri, Jul 20, 2012 at 3:35 PM, Mike Copeland <m...@ggisoft.com> wrote: > Just spitballing here... > > Anyone have any ideas how to have a VFP application shutdown in order to > restart? > > I'm thinking about something like when Firefox has downloaded an > update...it prompts you to restart Firefox to install the update. I'm > assuming that the same EXE file (Firefox) that prompts you then "does > something" to shut down, run the update, or run itself with an "update" > flag parameter, then restarts the application after the update is finished. > > How dey do dat? > > Mike Copeland > > > [excessive quoting removed by server] _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/CAJCBksrR-Dywup_1qd0xM9ESc5+Wd=i5wevye3qokcx5nps...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.