starting/stoping a service from a shortcut?

Discussion in 'Windows Operating Systems' started by f@rmboy, Aug 13, 2002.

  1. f@rmboy

    f@rmboy Terrorist Photographer

    Joined:
    Jun 29, 2001
    Messages:
    2,105
    Location:
    Yo mommas bedroom
    Is it possible to create a shortcut or batch file which will allow me to start and/or stop a particular service when logged in as a power user on a win2k boxen?
     
  2. Tigger

    Tigger Member

    Joined:
    Jun 27, 2001
    Messages:
    816
    Location:
    1/2 Way from Melb & Bend
    most definately The command is... Net Start "servic name with no quotation marks"

    I'm pritty sure thats the command.
    :)

    Tigger
     
  3. OP
    OP
    f@rmboy

    f@rmboy Terrorist Photographer

    Joined:
    Jun 29, 2001
    Messages:
    2,105
    Location:
    Yo mommas bedroom
    Thanks..... that was easier than I thought it would be.

    BTW if the service name has spaces in it then you have to enclose it in quotation marks
     
  4. mpot

    mpot Member

    Joined:
    Jun 27, 2001
    Messages:
    5,372
    Location:
    Perth, WA
    Or you could just find the short name of the service, and use it instead.

    ie, the short name for "World Wide Web Publishing Service" is "W3SVC".

    Cheers,
    Martin.
     

Share This Page

Advertisement: