This is probably a very basic and easy to answer question for someone who knows. But ive not really done anything with Scripting.
All i want to do is create a batch file that will run via scheduled tasks.
I want it to restart a service every day. My problem is that the service has dependancies which in turn im happy for them to be restarted also.
So obviously i have the following in the batch file.
net stop "Service Name"
net start "Service Name"
but when this runs it prompts in a ms dos box to hit Y or N (i need Y obviously) to restart the dependant services. and then Hit Enter. How do i go about doing this within the batch file ?
Thanks
All i want to do is create a batch file that will run via scheduled tasks.
I want it to restart a service every day. My problem is that the service has dependancies which in turn im happy for them to be restarted also.
So obviously i have the following in the batch file.
net stop "Service Name"
net start "Service Name"
but when this runs it prompts in a ms dos box to hit Y or N (i need Y obviously) to restart the dependant services. and then Hit Enter. How do i go about doing this within the batch file ?
Thanks