fascinating rhythm
Сообщения: 6493 Благодарности: 1465
Профиль | Отправить PM | Цитировать
function Stop-Tsk { [CmdletBinding()] param ( [Parameter(Mandatory)] [string]$tsk ) do { Stop-Process -Name $tsk sleep 2 } until ((Get-Process $tsk -ErrorAction SilentlyContinue) -eq $null) } Stop-Tsk mspaint & "C:\temp\Run2.bat"
------- Powershell 7.x | Powershell 5.1 | ffmpeg (docs)
Отправлено: 11:09, 22-11-2022 | #4