Welcome !
         

 VBS Script to open a PDF and go to a specific page

Author Message
chrisj@southernmonitoring.co.uk

  • Total Posts : 3
  • Scores: 0
  • Reward points : 0
  • Joined: 10/15/2015
  • Status: offline
VBS Script to open a PDF and go to a specific page Friday, December 09, 2016 3:21 AM (permalink)
0
Dear Top peoples.
 
I have the following script that I need to modify to open at page 5, do you know how this can be achieved?
 
 Dim wshShell
 Set wshShell = CreateObject("WScript.Shell")
 wshShell.run """\\fileserver\test.pdf"""
 Set wshShell = Nothing
 

 
 
#1
    sonymouse

    • Total Posts : 1
    • Scores: 0
    • Reward points : 0
    • Joined: 1/23/2017
    • Status: offline
    Re:VBS Script to open a PDF and go to a specific page Monday, January 23, 2017 3:46 AM (permalink)
    0
    You can use the /A command line option with the Acrobat Reader executable. So replace your command wshShell.run to something like this:
    C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe /A "page=5&pagemode=none" "test.pdf"
     

     
    #2
      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2017 ASPPlayground.NET Forum Version 3.9