Search found 3 matches

by dosnoob
29 Jan 2013 01:27
Forum: DOS Batch Forum
Topic: dos command to read a text file
Replies: 4
Views: 2962

Re: dos command to read a text file

Youre the man foxidrive.. Thanks
by dosnoob
29 Jan 2013 00:23
Forum: DOS Batch Forum
Topic: dos command to read a text file
Replies: 4
Views: 2962

Re: dos command to read a text file

Hi foxidrive, thanks for the quick response.
How if it cannot find the "ERROR:XXXX"? Will it still restart the services based on your suggested script?

My requirement is, the services will only be restarted if the string "ERROR:XXXX" is found.
by dosnoob
28 Jan 2013 23:32
Forum: DOS Batch Forum
Topic: dos command to read a text file
Replies: 4
Views: 2962

dos command to read a text file

Hi DOS gurus, im a DOS noob. I want to create a DOS script that will read a log/text file. Below is the requirement: The script will basically search for a word/string(let say "ERROR:XXXX") from the log file, if the exact word/string is found, then the script will restart a windows service...