Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Stopping a Service with a .bat file?
Results 1 to 2 of 2

Thread: Stopping a Service with a .bat file?

  1. #1
    Newbie
    Join Date
    Feb 2006
    Posts
    2
    I was wondering if anyone knew how to stop an Administrative Service with a command in a .bat file? Thanks Chris

  2. #2
    Junior Member
    Join Date
    Oct 2006
    Location
    Washington DC
    Posts
    80
    You could create a bat file using the

    net stop <service name>

    A full list of the exact services is found in the registry (run regedit.exe) under the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es key.

    Alternatively, you can perform the stop and start using the name that is showed in the Services Control Panel applet by putting the name in quotes

    net stop "<service>"



    You can also use the Resource Kit SC.EXE command, using

    sc query

    to get a list of the services, and then

    sc stop <service name>

Similar Threads

  1. Defining your own password file for sendmail service!
    By honey bee in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 05-22-2006, 01:59 PM
  2. Stopping IPtables on Debian
    By woosting in forum Security
    Replies: 7
    Last Post: 10-07-2005, 03:15 AM
  3. Scripting problem: stopping automount
    By morphman in forum Programming
    Replies: 7
    Last Post: 06-13-2002, 01:04 PM
  4. Starting/stopping a service at a certian time
    By xin in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 05-26-2002, 01:42 AM
  5. Starting and stopping daemons
    By Digital_Froggy in forum Linux - General Topics
    Replies: 3
    Last Post: 01-05-2002, 06:36 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •