Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Error opening pdf file from Powershell with parameters

New Here ,
Dec 20, 2019 Dec 20, 2019

Copy link to clipboard

Copied

Hi all,

I need to open a pdf file in full screen mode with no tool bar, from Powershell.

I used the commande below:

start-process "C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" "/A pagemode=fullscreen `&` toolbar=0 C:\Users\Myusername\Desktop\Morningplan.pdf"

When running the command from ISE, I get a pop up information box "There was an error opening this document. This file cannot be found".

When I click on OK, the file opens normally in full screen mode.

I need to get rid of this pop-up as my Powershell procedure is supposed to run unattended on a display.

 

Thanks very much for your help!

Thierry

Views

4.3K
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 20, 2019 Dec 20, 2019

Copy link to clipboard

Copied

LATEST

You seem to be missing some quotes to end the parameters and to start the filename. 

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines