I have a line of BAT code written as follows:
tasklist /FI "IMAGENAME eq WerFault.exe"|find /C "WerFault.exe" > temp.txt
This went on for quite a few days, but unexpectedly I received an error message:
error :Invalid argument/option: - 'eq'
The code was not changed before and after this error message, I can not understand what the problem is.
source
share