Scheduling Services to start and stop

Is there any way to do this with task scheduler. I have not tried it yet i was just wondering. The reason is because i run an FTP server and I defragment my hard drives every night. So when my drives are defragmenting I want to stop the server, and when they are done start it again.

Windows Software 5498 This topic was started by ,


data/avatar/default/avatar16.webp

1623 Posts
Location -
Joined 1999-12-06
Is there any way to do this with task scheduler. I have not tried it yet i was just wondering. The reason is because i run an FTP server and I defragment my hard drives every night. So when my drives are defragmenting I want to stop the server, and when they are done start it again.

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


data/avatar/default/avatar03.webp

581 Posts
Location -
Joined 2002-04-27
Net Start "service"
Net stop "service"
 
make them batches, and set task scheduler to run them.
 
Batch files and task scheduler is your friend.

data/avatar/default/avatar16.webp

1623 Posts
Location -
Joined 1999-12-06
OP
ah cool thanks guys.

data/avatar/default/avatar16.webp

1623 Posts
Location -
Joined 1999-12-06
OP
is there any way to tell me what services are running??