Thank u for ur response...with the help of ur code I changed it as 

setlocal
call "%~dp0zkEnv.cmd"
set ZOOMAIN=org.apache.zookeeper.server.quorum.QuorumPeerMain
IF [%2] EQU [] set ZOOCFG=%ZOOCFGDIR%\zoo.cfg
ELSE set ZOOCFG="%2"
echo on
call java "-Dzookeeper.log.dir=%ZOO_LOG_DIR%"
"-Dzookeeper.root.logger=%ZOO_LOG4J_PROP%" -cp "%CLASSPATH%" %ZOOMAIN%
"%ZOOCFG%" 
endlocal

Now if we didnt give any arguments it looks at the zookeeper directory and
if we give any path it takes it..



--
View this message in context: 
http://zookeeper-user.578899.n2.nabble.com/Zookeeper-in-windows-tp7580194p7580198.html
Sent from the zookeeper-user mailing list archive at Nabble.com.

Reply via email to