作成 2010.01.05
更新 2011.11.27
更新 2011.11.27
PowerShell で外部プログラムを非同期で起動する
内部関数は起動できません。
Function PProc
{
$p1 = New-Object Diagnostics.Process
$p1.StartInfo.FileName = "powershell.exe"
$p1.StartInfo.Arguments = ".\CProc.ps1"
$p1.StartInfo.WindowStyle = [Diagnostics.ProcessWindowStyle]::Normal
if($p1.Start())
{
$p1.PriorityClass = [Diagnostics.ProcessPriorityClass]::Idle
}
}
参考
タグ: PowerShell