Peter Cushing wrote: > Hi Vince, > I was thinking about doing this for a while, so just tried something on > my system. I use VFP7 and use a standard menu which has calls to DO > FORM X etc. I have a load of setup code then: > > DO MENUS\MYMENU.MPR > ON SHUTDOWN do cleanup > READ EVENTS I was experimenting with using ShellExec, so my code was StartupTasks(), where StartupTasks() opened a file, and did a ShellExec(myfile.mytask). Mytask was simply "DO FORM X".
And actually, it worked fine on my computer, because I actually had form X where it was expected. As soon as I tried any other computer, it couldn't find the form because it doesn't know about the forms compiled in the EXE. Of course, my menu option, which was also "Do Form X" works fine, because the menu does know about the compiled forms. I think Bill and Christofs suggestion will work, and I'll play with that when I get a chance. _______________________________________________ Post Messages to: [email protected] 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/[EMAIL PROTECTED] ** 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.

