28,655 questions
Use openwith.
$ps = new-object System.Diagnostics.Process
$ps.StartInfo.Filename = "openwith.exe"
$ps.StartInfo.Arguments = "C:\temp\xxxxxxxx.txt"
$ps.start()
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I know that Start-Process -FilePath <path to file>
opens the file at path to file
, however is it possible to, instead of opening with the default program, open the prompt that would open if you would right click on that file and then press Open with -> Choose another app?
Use openwith.
$ps = new-object System.Diagnostics.Process
$ps.StartInfo.Filename = "openwith.exe"
$ps.StartInfo.Arguments = "C:\temp\xxxxxxxx.txt"
$ps.start()