jibranilyas
asked on
service restart via batch script
I have a service that i have to restart quite often to get one of the apps working.
My batch script currently is
@echo off
net stop MySvc
net start MySvc
the problem is that the "net stop MySvc" sometimes asks for a Yes/No response as it has some dependency
So, i wanted to ask if there was a way to automate the 'Y' response in that batch script ..
Please let me know
Thanks,
My batch script currently is
@echo off
net stop MySvc
net start MySvc
the problem is that the "net stop MySvc" sometimes asks for a Yes/No response as it has some dependency
So, i wanted to ask if there was a way to automate the 'Y' response in that batch script ..
Please let me know
Thanks,
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
p.s. dlangr, thanks for the suggestion, i will look into that as well.