Link to home
Start Free TrialLog in
Avatar of jibranilyas
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,
SOLUTION
Avatar of dlangr
dlangr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jibranilyas
jibranilyas

ASKER

Thanks Bazmic ... luv it :)

p.s. dlangr, thanks for the suggestion, i will look into that as well.