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
Copy link to clipboard
Copied
You seem to be missing some quotes to end the parameters and to start the filename.