I have a script that runs an external EXE file. When that EXE file fails (sets errorlevel to 1), the PowerShell script fails.
I'm running curl.exe and am getting this:
- CategoryInfo : NotSpecified: ( % Total % ... Time Current:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError
How can I ignore/catch the failure of the external EXE file and continue with my script?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…