Question

Locked

Batch file for comparing strings

By zendainc ·
Hi I am currently trying to create a batch file to read text from a file, display it on the screen updating it every 2 seconds and beep if it finds something new, I have been able to get it to do everything except compare strings and google has yielded no results. So far in order to read and display the data I have the following

@echo off
color f9
title Service Desk - Significant Incident Feed
:start
cls
echo.
echo.
echo Significant Incidents currently open as of
echo.
date /t
time /t
echo.
echo.
echo.
echo.
type "text.txt"
Ping.exe localhost -n 2 >NUL
echo.
echo.

GOTO start

pause


Could anyone advise how I might be able to make it write the input to a string, compare the strings then beep if they do not match.

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Share your knowledge
Back to Google Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums