Glenn Linderman wrote:
On approximately 12/28/2006 9:07 AM, came the following characters
from the keyboard of Jason Plum:
Thanks Glenn,
There is definately a way to do it with Process, and its ugly
compared to this. (not to mention you have to dig deep into the real
APIP to find the option...)
This is just the cleanest, easiest to understand method I could spit
out in short order.
Right. I didn't give details _because_ they are hard to find. And
your solution should be fine for the OP. But for others, maybe they
want to launch async, and then wait. Process does that better, I
think... I think it is not possible with ShellExecute, but maybe I'm
missing something there.
AFAIK you are correct. I've never read anything about the ability of
ShellExecute to do an async wait on the return...Never even that way via
the raw windows API. So, for the sake of the archives:
This method to be used when an asynchronous process needs to be launched
out of the control of perl, via the Win32 API interfaces provided to us
by Win32::GUI.
#==
Win32::GUI::ShellExecute(Win32::GUI::GetDesktopWindow(), [parameters as
documented] );
#==
--
==================
Jason Plum
Head of IT R&D
DAJ Strategic Solutions
==================