摘要:
脚本内容 $fileName = "test.txt" $fileObj = [System.io.File]::Open($fileName,'Open','Read','None') Write-Host "Press any key to contunue ..." $null = $host 阅读全文
posted @ 2021-07-05 16:12
atq
阅读(150)
评论(0)
推荐(0)
摘要:
###使用$LASTEXITCODE .\7za.exe a -tgzip test.gz test.txt >> $null if($LASTEXITCODE -eq 0) { Remove-Item -Path test.gz break; } 阅读全文
posted @ 2021-07-05 16:06
atq
阅读(485)
评论(0)
推荐(0)
浙公网安备 33010602011771号