hi,
do somebody know how to get the %errorlevel% env variable after executing run() or runset()?
I tried
text runret("cmd /c ""git pull >nul 2>&1 & echo %errorlevel%""");
git pull in this case will fail and i want to detect the failure.
but this returns 0 instead of 1. executing the command in a cmd window the command only returns 1 on the first run.
thanks pulp
How to get %errorlevel% or error code of run() or runret()?
-
pulp
- Posts: 34
- Joined: 24 May 2016 20:52
XYplorer Beta Club