Skip to main content
Thierry95390
Participant
December 20, 2019
Question

Error opening pdf file from Powershell with parameters

  • December 20, 2019
  • 1 reply
  • 4670 views

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

This topic has been closed for replies.

1 reply

Legend
December 20, 2019

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