On Sun, 14 Jul 2002 15:53:54 UTC, Alan Beagley <[EMAIL PROTECTED]> wrote:
> Well, yes, I can see it in Process Commander too, but I wanted something automatic >so that I can just have an icon for a .CMD file (REXX or otherwise) that runs MDH.EXE >first if it isn't running, but goes straight to MOZILLA.EXE if MDH is running already I've used PGMCNTRL to do this (on hobbes as pgmcn104.zip) to do this. With it you can query if an entry is in the window list, and then check the return code. Also, somewhere along the way, IBM added the functions SysQuerySwitchList and SysSwitchSession to the Rexx utility library. The first fills a stem with the window list. The latter attempts to switch to the named session and returns an error if it can't. These could easily be used. > > > >> Any simple test I can incorporate in a batch file to run MDH.EXE if it > >> hasn't already been run, or skip if it's already running? > >> -- David Forrester davidfor at terrigal dot net dot au http://www.os2world.com/djfos2
