Hi all,
I'm having what is probably quite a silly question and havnt had much luck in finding a solution that works so I thought someone here might know where to look. Basically my problem is that when starting a process from a win32 perl service I cannot see the window of the process I created.
Using the perl dev kit I have created a service which as part of its operation is ment to open up an internet explorer window. This all works fine, except the Internet explorer window (when called from the service) dosnt appear! You can see that it was sucessfully started and can see it in the task manager but it's like the window is hidden. I've tried to look at system, exec and spawn commands, Win32::Process, Win32::SetChildShowWindow and AdminMisc::CreateProcessAsUser to display my Internet explorer window but to no avail - I havnt much experience with process's in perl so it could well be just my lack of understanding.
This is currently the line I use within the service to call Internet explorer:
my $prog="C://Program Files//Internet Explorer//iexplore.exe";
my site="http://www.website.html";
Win32::Process::Create($ProcessObj,"$prog"," site",0,NORMAL_PRIORITY_C
+LASS,".");
I know it's probably something I'm been very blind too so apologies in advance.
I'm using perl v5.8.0, win 2000 pro+sp4 and version 5.3.0 of the dev kit (will be upgrading soon if I can get managment to pay :-)
Cheers and thanks for any help,
J
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.