No need to write the status to a file and read that in extra steps, you could just use findstr:
Code: Select all
curl -u ":vlc" http://localhost:8001/requests/status.xml | findstr "<state>playing"
after that, %ERRORLEVEL% is 0 if state is playing or 1 if state is different.