I'd say the canonical way of doing things like this in PowerShell are background jobs. $timeout = 300 # seconds $job = Start-Job -ScriptBlock { Copy-Item .
確定! 回上一頁