Quite simply, how does one determine whether or not Tomcat is running in Windows, using the command prompt?
I am writing a batch script that must do this. This is
Using WMIC
@echo off wmic process list brief | find /i "tomcat.exe" set result=%ERRORLEVEL% if "%result%"=="1" echo "not running" if "%result%"=="0" echo "running"
note : /i is to make the find operation case-insensitive.