>I am issuing the command: RUN progname filename. This works fine, but how do I load a different filename without creating another instance of progname? e.g. Somehow I need to check to see if progname is already running. I have tried RUNning filename much like dblclicking filename in Windows95, but this receives the error Bad command.
>
>Thanks.
Tom,
In the solution I'm about to propose, some of this depends on the application. For example, this solution will load a new document into an existing instance of Word 97 or run it and load it, but start a new instance for a notepad file. Try this:
DECLARE INTEGER ShellExecute IN Shell32;
INTEGER hwnd, STRING @lpOperation, STRING @lpFile,;
STRING @lpParameters, STRING @lpDirectory, SHORT nshow
lcop = 'open'
lcparms = ""
lnshow = 9
lnresult = ShellExecute(0, @lcop, @lcfile, @lcparms, @lcpath, lnshow)
hth,
George
Ubi caritas et amor, deus ibi est