Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <3C06C19B.772F3C54@whack.org>
Date: Thu, 29 Nov 2001 15:15:39 -0800
From: Peter Wohlers <pedro@whack.org>
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: swamp-dog@ntlworld.com
CC: cygwin@cygwin.com
Subject: Re: cygqrysrv
References: <1006719960009516@firemail.de> <11487331716.20011125215729@familiehaase.de> <3c0ef983.12033913@smtp.swampdog>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 29 Nov 2001 23:15:40.0000 (UTC) FILETIME=[C2B0B600:01C1792B]



Guy Harrison wrote:
> 
> On Sun, 25 Nov 2001 21:57:29 +0100, "Gerrit P. Haase"
> <gp@familiehaase.de> wrote:
> 
> >Now I'm only missing one, how to get a list of ALL services with name
> >& displayed name?
> 
> Er - pass! I can never remember its syntax - which was the initial
> reason wanting my own version. Moreover, SC has another (infuriating)
> feature. I'll elaborate on this in the next episode <g>
> 

From the RK

D:\>netsvc
Controls and displays the status of services.

NETSVC servicename \\computername /command

   servicename  Name of the service
   computername Name of the computer to administer.
   /command     One of the following:
                /query    Queries the status of the service.
                /start    Starts the service.
                /stop     Stops the service.
                /pause    Pauses the service.
                /continue Starts the paused service.
                /list     Lists installed services (omit servicename)

Example: NETSVC server  \\joes486 /query
Example: NETSVC "Clipbook Server" \\popcorn /stop
Example: NETSVC alerter \\joes486 /pause
Example: NETSVC /list \\joes486

Arguments are allowed in any order.


-- 
Peter Wohlers

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

