Search code examples
powershellbatch-filepowershell-3.0

Open a CMD command in Powershell


I'm trying to open a use this command from batch in a powershell script:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -kiosk http://praxistipps.chip.de/ --overscroll-history-navigation=0 --window-position=0,0

So I tried this but with no success:

Start-Process -FilePath "cmd.exe"  -ArgumentList "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -kiosk http://praxistipps.chip.de/ --overscroll-history-navigation=0 --window-position=0,0

Solution

  • Why not call chrome directly?

    Start-Process -FilePath "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -ArgumentList "-kiosk", "http://praxistipps.chip.de/", "--overscroll-history-navigation=0", "--window-position=0,0"