Ooops, this list seems to block attachment, here is the batch file:

@ECHO off
::Last Modified: 2002-Jul-24 17:19 (HA)
SET command=%1
SET svcname=%2

if "%command%"=="stop" goto ok
if "%command%"=="start" goto ok
if "%command%"=="list" goto list
if "%command%"=="restart" goto restart
if "%command%"=="" goto exit
SET svcname=%command%
SET command=stop
ECHO %command%
ECHO %svcname%
:ok
lssvc | grep -i "%svcname%" | sed "s/.Running.*//" | sed s/".Stopped.*//" |
grep -v "\-\-\-\-" | grep -v Description | sed "s/ *$//" | xargs_a -t net
%command% \"{}\"
:list
lssvc | grep -i "%svcname%"
goto exit

:restart
call svc.bat stop %2
call svc.bat start %2

:exit
###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to