Had a requirement to do this, and here's what I came up with: if((Get-Process -Name notepad -ErrorAction SilentlyContinue) -eq $null){ .
確定! 回上一頁