Menu

Launching Acrobat

2007-04-05
2012-11-13
  • Idris Samawi Hamid

    Hi,

    I am trying to get Notepad++ to launch Acrobat to view the pdf version of 
    a tex file. The following command does not work:

    "C:\Program Files\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe" 
    "$(CURRENT_DIRECTORY)\$(NAME_PART).pdf"

    Just as importantly, neither does the following work:

    "C:\Documents and Settings\All Users\Desktop\Adobe Acrobat 7.0 
    Professional.lnk" "$(CURRENT_DIRECTORY)\$(NAME_PART).pdf"

    (I activated the LNK extension in the control panel so that Acrobat will 
    start in the same position as the last run; just declaring Acrobat.exe 
    will make Acrobat/Reader forget its last position and start with the 
    default.)

    If I put the LNK in a batch file (say view.bat) I can get Acrobat to open 
    but the file does not open:

    view  "$(CURRENT_DIRECTORY)\$(NAME_PART).pdf"

    Even if I declare the name of the file it does not work:

    view  "$(CURRENT_DIRECTORY)\foo.pdf"

    Please advise!

    (It is also somewhat frustrating that I have not gotten a single response 
    to any of my posts. I have invested many hours learning\configuring 
    Notepad++ and I would be very grateful to get some feedback; if my posts 
    are unwelcome for some reason I would love to know the reason why!)

    Best
    Idris

    --
    Professor Idris Samawi Hamid
    Department of Philosophy
    Colorado State University
    Fort Collins, CO 80523

     
    • Idris Samawi Hamid

      Hi,

      Thank you for the advice! This morning I actually found a solution: put the Acrobat lnk shortcut in a directory that's already in the PATH and run

      Acrobat "$(CURRENT_DIRECTORY)\$(NAME_PART).pdf"

      Thank you again for your response!

      Best
      Idris

       
    • steakhacher

      steakhacher - 2007-04-06

      Hi

      I have no idea. Execute cmd in notepad++ is sometimes strange. But try to see in batch passing argument is command line is ok using echo command.

      In your batch
      You can try to make a cd on the on the pdf document directory and make start your_doc.pdf

      I hope that will help you