%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 122.154.253.140 / Your IP : 216.73.216.153 Web Server : Microsoft-IIS/7.5 System : Windows NT SERVER02 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.6.31 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/ProgramData/VMware/VMware CAF/pme/scripts/ |
Upload File : |
@echo off
if "%~1" == "help" (
call :helpMessage %~1
)
set processName=CommAmqpListener
set processPath=%ProgramFiles%\VMware\VMware CAF\PME\bin\%processName%.exe
set serviceName=VMwareCAFCommAmqpListener
FOR /f "delims=" %%x in ('tasklist ^| findstr "%processName%"') do set processProc=%%x
if not "%processProc%" == "" (
echo Process already running - %processName%
exit /B 1
)
set startType=%~1
if "%startType%" == "" (
echo net start %serviceName%
net start %serviceName%
) else if "%startType%" == "service" (
echo net start %serviceName%
net start %serviceName%
) else if "%startType%" == "background" (
echo %processPath%
%processPath%
) else if "%startType%" == "foreground" (
echo %processPath% -n
%processPath% -n
)
goto:eof
:helpMessage
echo *** %0 %1
echo Starts AMQP Communication
echo startType: How to start AMQP Communication (service, background, foreground) [default: service]
exit /B 0