Hi everyone\n\nI'm trying to do errorlevel handling but not with expected results:\nCode:\n\nNet use \\%%a P@ssw0rd /User:mydomain\admin\nIF NOT ERRORLEVEL 0 (\nEcho. Connection Failed for to %%a\nEcho. Connection Failed for to %%a >>Log.txt\n) Else (\nEcho. Connected to %%a\nEcho. Connected to %%a >>Log.txt\n)\n\n\nThe problem is that always "Echo. Connected to %%a" not matter if it fails\nor not, the result is always the saame. Can anyone help me?