$ErrorActionPreference="Continue" Write-Host "=== stderr tail ===" Get-Content "E:\wwwroot\inquiry-new\logs\stderr.log" -Tail 40 -ErrorAction SilentlyContinue Write-Host "=== jar commons-io entries ===" $jar="C:\yutongda\tools\jdk8\bin\jar.exe" & $jar tf "E:\wwwroot\inquiry-new\jeecg-system-start-3.5.3.jar" | Select-String "commons-io" Write-Host "=== incoming jars ===" Get-ChildItem "C:\Users\ytd_extdev_0903\incoming\jeecg*.jar" | ForEach-Object { Write-Host ($_.Name + " " + $_.Length) } # restore CAPTCHA if present $cap="C:\Users\ytd_extdev_0903\incoming\jeecg-system-start-3.5.3.CAPTCHA.jar" if(Test-Path $cap){ Get-CimInstance Win32_Process | ForEach-Object { if($_.CommandLine -and ($_.CommandLine -like "*inquiry-new*jeecg*" -or $_.CommandLine -like "*run-ledger*")){ Stop-Process -Id $_.ProcessId -Force -EA SilentlyContinue } } Start-Sleep 2 Copy-Item $cap "E:\wwwroot\inquiry-new\jeecg-system-start-3.5.3.jar" -Force Copy-Item $cap "C:\Users\ytd_extdev_0903\incoming\jeecg-system-start-3.5.3.jar" -Force Write-Host ("RESTORED_CAPTCHA bytes="+(Get-Item $cap).Length) } Write-Host "STATUS_DONE"