Question
October 30, 2007 at 06:57 AM
susan.e.troidle

Looking for HTA advice

by susan.e.troidle . Updated 19 years ago

a two part question: I manage an hta file which generates a screen of buttons to open files (excel, word, etc) via vbscript functions. This enables management to have one place (a web-like interface) to go for all their info needs. My 1st question is: is this the way to go given all the new scripting / programming knowledge?
2nd question: I have tried to create a vbscript function to open a pdf file to no avail:

sub runPDF(StrFile)
dim fs, runPD, op
set fs = CreateObject(“Scripting.FileSystemObject”)
if fs.FileExists(GetPath & StrFile) then
set runPD = CreateObject(“WScript.Shell”)
set op = runPD.run(GetPath & StrFile, 3)
else
msgbox “ERROR: File not found!”
end if
set runPD = nothing
set op = nothing
set fs = nothing
end sub

This works but gives an error popup as well. Any thoughts?

Thanks
Susan

This discussion is locked

All Comments