Start / Stop - running process/service - batch files

Printed from http://www.compatdb.org/support/topics/142037_start_stop_running_process_service_batch_files.html

Start / Stop - running process/service - batch files - 07/21/04 06:10 AM

Hey guys, I need to throw a couple of batch files together for a 2k server to stop the Nav for Exchange service so that the mail can be backed up by the tape backup. Once its backed up, I need to start it up again. The Backup software can call .bat files before and after backups, so I'd like to keep it simple with good old fashioned commands. Can anyone point me to a pre made reference? I was never that strong on commands and I'm too busy to research right now - this is due tomorrow.

Cheers.

Re: Start / Stop - running process/service - batch files - 07/21/04 11:41 AM

You can start, pause and stop any Windows service by using;

NET START\PAUSE\STOP ServiceName

at the Command Prompt.

smile