Force exit code zero for windows command line commands Force exit code zero for windows command line commands windows windows

Force exit code zero for windows command line commands


netstat -an | find "25000" || ver>nul

If the find command raises errorlevel, execute a command that resets it., in this case the ver command is used and its output discarded