Use SHELL to open a program, but what to CLOSE it ?
OK, I have a stupid question ....


I want to close a program I call from my app. I cant figure it out !

Lets say I use Shell to open it, and get its AppId ... How can I use that AppId to close that instance of that program ?

I have tried and tried to even use AppActivate and sendkeys, but for some unknown reason appactivate wont work anymore from my app. Says error 5, object not found or some stupid crap. But regaurdless, I dont care about appactivate, I just want to close the AppId I call from shell.... Not a hard problem, right ? :-)

Ok, and another quick question is, lets say I shell IEXPLORE.EXE and want to send a new string to the SAME APPID, not a new instance of the program (Navigate to another site from THE app I called, not a new one) - how can that be acomplished ? I dont even know where to begin with that one...


Thanks to all !

BaLLZaCH
[email protected]

Visual Basic 5 and 6