Can someone help me create or modify this script?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
raspberry109
Posts: 29
Joined: 07 Jun 2017 23:40

Can someone help me create or modify this script?

#1 Post by raspberry109 » 22 Oct 2017 00:39

I have this script and works fine but i want to make a small change.The scenario is this:
Mskscss.bat: https://pastebin.com/zwZVZk99
I open AlwaysUP(i run Mskscss.bat as System) so when finds the word: ''Discovered'' in this test file ''mskscss.out.txt'' then he will do this action: net stop Mskscss (managed by AlwaysUpService) --> this command will stop this service forever.When finds the 2'nd error called 5 consecutive times the do this action: net stop Mskscss (managed by AlwaysUpService) ''.I want to change thisd,when finds this error:'' rate 0.00'' 100 consecutive times then : net stop Mskscss (managed by AlwaysUpService) wait 20 sec. and then net start Mskscss (managed by AlwaysUpService).
thank you!

Post Reply