Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hello All, Maybe someone out th 1

Status
Not open for further replies.

luckydexte

Programmer
Joined
Apr 26, 2001
Messages
84
Location
US
Hello All,

Maybe someone out there can help. I want to launch Internet Explorer passing it in argument. This opens IE and displays the site you passed as an argument. What I would like to do is launch IE with an argument and the process runs but the window does not open. There is C routine called CreateProcess which is called through the Windows API but I am not sure how to implement this in a Perl program. If anyone has any suggestions I would appreciate it.

Thanks,

Brandon
 
This will spawn IE and open There are several variations on the 'open a process' theme (backticks, system, pipes, exec).... the one you should use depends on what you are trying to do.

Code:
#!perl
chdir('C:/Program Files/Plus!/Microsoft Internet/');
$ie = 'IEXPLORE';
$page = '[URL unfurl="true"]http://www.perl.com';[/URL]
system($ie $page);

HTH


keep the rudder amid ship and beware the odd typo
 
Thanks goBoating. Do you know if I can run the system command to call iexplore, without the browser opening. It would kind of be like running a shell in the background, without the shell window opening. I need to run a perl script in a browser (because it has to be secure) but I do not want the browser to visible on the monitor. Hope this makes sense. If you have ideas please let me know.

And thanks again.

Brandon
 
' sounds to me like you should go surf and find a module that will let you emulate a browser, rather that trying to use a browser. The only way I know to crank up IE and have it minimized, is to make a short cut to it and call the short cut. But, you have to embed the page to open in the shortcut definition which removes a lot of your flexibility.

Sorry, I can't be more assistance.



keep the rudder amid ship and beware the odd typo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top