Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

https://stackoverflow.com/questions/651223/powershell-start-process-and-cmdline-switches

$EXEFlags = '/P'
Start-Process -FilePath "$EXEPATH" –Verb Open -ArgumentList ($EXEFlags,' ',$FILEPATH)
Start-Process -FilePath "C:\Program Files (x86)\Microsoft Office\root\Office16\WINWORD.EXE" –Verb Open -ArgumentList ('C:\tmp\test.docx')
Command Seperated Args
-ArgumentList ('/v:q','/nologo')
No Quotes on Args
-ArgumentList ($FILEPATH)
  • No labels