@echo off rem ----------------------------------------------------------------------- rem Filename: Listener.bat rem Purpose: Start and stop the Oracle SQL*Net Listener rem Usage: listener START or listener STOP rem Date: 05-Mar-2002 rem Author: Frank Naude, Oracle FAQ rem ----------------------------------------------------------------------- rem -- Accept command line arguments -- rem Note: %1 is the first command line argument, %2 the second, etc. if "%1" == "" goto Usage set LSNRCMD=%1 echo Command Line Argument: %LSNRCMD% lsnrctl %LSNRCMD% goto End :Usage echo "Usage: %0 [ STOP | START | STATUS | SERVICES ]" :End