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
Solved

Schedule Services to Start and Stop

Posted on 2006-10-23
4
3,070 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
4 Comments
 
LVL 20

Accepted Solution

by:
jimmymcp02 earned 300 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 100 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 95

Assisted Solution

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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
There's a lot of hype surrounding blockchain technology. Here's how it works and some of the novel ways it' s now being used - including for data protection.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

838 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