Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: stop and start a service using a bat file  (Read 3447 times)

0 Members and 1 Guest are viewing this topic.

Holly Groce

  • Guest
stop and start a service using a bat file
« on: September 16, 2004, 02:22:59 PM »
I am trying to figure how to create a bat file that will stop a service, then create a backfile (which I know how to do, then restart the service.   Looking for an example?

Aaron



    Greenhorn

    Re: stop and start a service using a bat file
    « Reply #1 on: March 02, 2008, 04:00:07 PM »
    Are you using Windows XP?

    If so then,
    ----
    sc stop <ServiceName>

    call backupStuff.bat

    sc start <ServiceName>
    ----

    I found this at http://commandwindows.com/sc.htm

    -Aaron
    www.weknowerrors.com A free Wiki for computer problems.

    dairyman

    • Guest
    Re: stop and start a service using a bat file
    « Reply #2 on: March 02, 2008, 05:50:31 PM »
    This was posted 4 years ago and the OP of the topic already deleted his/her account.