?
Solved

Schedule Services to Start and Stop

Posted on 2006-10-23
4
Medium Priority
?
3,079 Views
Last Modified: 2008-08-05
Under Administrative Tools there is Services.  I want to take a service and stop at a specific day to do a backup and the start it after the backup is done.  Is there a simple scheduler to start and stop a service for the day?
0
Comment
Question by:al4629740
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 20

Accepted Solution

by:
jimmymcp02 earned 1200 total points
ID: 17789982
use windows task schedule

First you need to create a batch file i will use my pcanywhere stop batch file

very simple create a bat file with the name stop pcanywhere and add this code to it

Net Stop "pcAnywhere Host Service"

the above will stop the pcanywhere host service
then you schedule the start

Net Start "pcAnywhere Host Service"

works great
0
 
LVL 86

Assisted Solution

by:jkr
jkr earned 400 total points
ID: 17790018
You can do that using W2k's builtin scheduler. Basically, create a .cmd (or .bat) file that is something like

net stop myservice
DoBackup.exe /somefancyargs
net start myservice

and schdule that to run at the time of your choice. Keep in mind that you should schedule the file to run under the Administrator (or any similar privileged) account. Just go to 'Run|Programs|Accessories|Scheduled Tasks' and follow the assitant to through the necessary steps.
0
 

Author Comment

by:al4629740
ID: 17790185
How do I create a batch file?

Do I just paste that into NotePad and then save it as a .vbs file?
0
 
LVL 96

Assisted Solution

by:Lee W, MVP
Lee W, MVP earned 400 total points
ID: 17790212
no, save as a .cmd or .bat file.  But otherwise, yes.
0

Featured Post

Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
We are witnesses that everyone is saying that our children shouldn't "play" with a technology because it is dangerous. This article is going to prove that they are wrong.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month8 days, left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question