atq

导航

 

使用$LASTEXITCODE

.\7za.exe a -tgzip test.gz test.txt >> $null
if($LASTEXITCODE -eq 0)
{
Remove-Item -Path test.gz
break;
}

posted on 2021-07-05 16:06  atq  阅读(485)  评论(0)    收藏  举报