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!

Using VBScript to open PDF 1

Status
Not open for further replies.

tcstom

Programmer
Aug 22, 2003
235
GB
Hi all,

I need a VBScript script (to be saved as a .vbs file) that, when run, opens a PDF using Adobe Acrobat. I'm not too hot on VBScript so if anyone can provide the exact code I need I'd be very grateful.

Thanks,


Tom
emo_big_smile.gif
 
Hello tcstom,

I have answered your same question in .bat. Here is the same reasoning for .vbs.
Code:
set wshshell=createobject("wscript.shell")
wshshell.run """C:\Program Files\Adobe\Acrobat 6.0\Reader\AcroRd32.exe"" ""i:\IT Training\TrainingSchedule.pdf"""
set wshshell=nothing
regards - tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top