Return ErrorLevel or console message if NIRCMD.exe fails

404 Views Asked by At

I am looking for a way to identify if NIRCMD fails to do what i ask it to do. Is there a way to have NIRCMD to tell me if it fails?

Example:

"nircmd.exe" win activate title "Untitled - Notepad"

The above code works because I have this file open.

"nircmd.exe" win activate title "Untitled - Notepad12345"

The above code DOES NOT work because this window does not exist yet Nircmd acts like it runs ok in the CMD prompt and not giving any type of message letting me know it did not actually do what i asked it to do.

Also, the "NIRCMD showerror" results in no errors.

0

There are 0 best solutions below