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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows - Open an html file in a window from script

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Joined
Feb 6, 2002
Messages
1,851
Location
IL
HI,

My script creates an html file on the Desktop.
Once my script is over - I want it's last action to open a resulted HTML file full screen to the user.

Appreciate any ideas.
Thanks

Long live king Moshiach !
 

Code:
exec 'hello.html';

The above code will execute the file hello.html. If your file associates are set up properly in windows, this will automatically load in your browser of choice.

This will terminate your script, so it's important to do any cleanup before making this code.
 
I wrote a similar script lately and found this code to work very well.

use Win32::OLE;

$outputFile = "$fileName.html";

$IE = Win32::OLE->new("InternetExplorer.Application") || die "Could not start IE";
$IE->{visible} = 1;

$IE->Navigate($outputFile);
 
Thanks to all,

Ended up doing :

my $AAA=`\"$SYSTEMDRIVE\\Program Files\\Internet Explorer\\IEXPLORE.EXE\" \"$SYSTEMDRIVE\\Documents and Settings\\Administrator\\Desktop\\py_check.html\"`;


Long live king Moshiach !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top