Search notes:

System.Diagnostics.Process - Start()

Start a console process (cmd.exe)

The following example starts a process (cmd.exe) in a new console:
$psi = new-object System.Diagnostics.ProcessStartInfo

$psi.UseShellExecute  = $true
$psi.WorkingDirectory = $env:userprofile

$psi.FileName         = 'cmd.exe'
$psi.Arguments        = '/k echo Working directory is %cd%'

$proc = [System.Diagnostics.Process]::Start($psi)

write-host "process id is $($proc.id)"
Github repository .NET-API, path: /System/Diagnostics/Process/Start/new-console.ps1

Start a GUI process

The following example starts a GUI process (explorer.exe).
$psi = new-object System.Diagnostics.ProcessStartInfo

$psi.FileName  = 'explorer.exe'
$psi.Arguments = $env:userprofile

$proc = [System.Diagnostics.Process]::Start($psi)
Github repository .NET-API, path: /System/Diagnostics/Process/Start/gui.ps1

See also

System.Diagnostics.Process

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Microsof...', 1759383435, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/dot-net/namespaces-classes/System/Diagnostics/Process/Start/index(63): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78