mardi 22 janvier 2019

Simple if in batch file

For some reason my batch script always closes when the following if is executed

IF %LAST_TS_ERROR%=="-1"(
 cd %mypath%plugins\"
 ren TeaConnect_win64.dll TeaConnect_win64.dll.OFF
)

In case you need to know: last_ts_error is

SET LAST_TS_ERROR=%ErrorLevel%

Aucun commentaire:

Enregistrer un commentaire