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

Opening a .PDF using Step7 TIA Portal VBscript

Status
Not open for further replies.

joneebravo

Programmer
Feb 28, 2013
1
US
I wanted to post this since it was difficult finding a solid answer to a simple question. I finally figured it out and made it as simple as possible.

Dim wshshell
Set wshshell=CreateObject("wscript.shell")
wshshell.Run ("C:\G120_ParMan_1108_en.pdf")
Set wshshell=Nothing

Obviously, your file location will be different based on your storage path.

Once the script is scanned, the file will open assuming you have Adobe loaded on your machine.

joneebravo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top