Hi,

I've written a Perl service which to help monitor an application. On 
discovering an issue it is to bring up an Internet explorer window with a link 
to a particular site. Everything works perfectly, except that the Internet 
explorer window is not visable!
The service starts Internet explorer with no problems (ie it is visable in the 
task manager), it's almost like because it is running as a service, child 
process's created from it are inheriting it's "windowless" state. I can take 
the same code, strip it out and run it from a cmd prompt and it works no 
problem. It only has an issue when created as a service.

Here is the basic code used:

        use strict;
        use warnings;
        use Win32;
        use Win32::Process;
        my $prog="C://Program Files//Internet Explorer//iexplore.exe";
        my $site="http://www.google.com";;

        Win32::Process::Create($ProcessObj,"$prog"," 
$site",0,NORMAL_PRIORITY_CLASS,".");


Again, this works as a script that can run from the cmd line but the same code 
will not work when generated as a service (obviously more code then this to 
generate a service, I can supply code for review if someone is interested, the 
call to initiate IE is the same though).

Has anyone run accross this problem before or know where I might get more info 
so I can get my Internet explorer window to display?

I'm using perl v5.8.0 on Win w2k +sp4 and creating the sevice using the 
activestate dev kit (5.3.0).

J


***********************************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
***********************************************************************************


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to