PoshCode Archive  Artifact Content

Artifact 986f556e3e8cf6e7a7c97e8870ac6e43b00a28628e9c5f6c2c9cf37bf73b8b6b:

  • File Start-Process.ps1 — part of check-in [6b2b78d2ae] at 2018-06-10 14:23:30 on branch trunk — This is a simple function that can “Start” apps and return the PROCESS object. In particular, it can start URIs, documents, and apps defined in the “App Paths” registry, and basically anything that you could start from the run dialog. (user: unknown size: 601)

# encoding: ascii
# api: powershell
# title: Start-Process
# description: This is a simple function that can “Start” apps and return the PROCESS object.  In particular, it can start URIs, documents, and apps defined in the “App Paths” registry, and basically anything that you could start from the run dialog.
# version: 0.1
# type: function
# license: CC0
# x-poshcode-id: 741
# x-archived: 2008-12-21T05:41:24
#
#
function Start($app,$param) {
   if($param) {
      [Diagnostics.Process]::Start( $app, $param )
   } else {
      [Diagnostics.Process]::Start( $app )
   }
}