5i365 (我心飞扬)当前离线
上尉
$Fo = get-item "$HOME\Desktop\abc" while ($true) { $ts = ((Get-Date) - $Fo.CreationTime).TotalSeconds if ((Test-Path $Fo) -and ($ts -lt 20)) { "OK" } Sleep 1 $i++ }复制代码