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

Opening an HTML Document 1

Status
Not open for further replies.

gazzanewpy

Instructor
Oct 21, 2002
127
GB
I have written most of the script I need for a AUP but need a simple piece of script that opens up the default browser with a given .HTM file. How can I achieve this?

The vbscript file is a .vbs and is to be used during startup for all users.
 
Hello gazzanewpy,

To take into account of the client's default browser setting, try this.
Code:
htmlfile="d:\test\abc.htm"   '<<<your input here
set shapp=createobject("shell.application")
shapp.open htmlfile
set shapp=nothing
regards - tsuji
 
Thanks very much. Very impressed and so simple (not you, the code!)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top