windows - Setting CATALINA_HOME by another batch file parameter? -


  • i have 2 batch files. first.bat , test.bat

first.bat:

 @echo off  set start="c:\users\neonous\desktop\test.bat"  call %start% "c:\program files\apache\tomcat_6" 

test.bat:

 @echo off  set "%catalina_home%=%~1"  echo %catalina_home% 

actually trying is, want set catalina_home value session(not permanently), calling test.bat 1 parameter, inside first.bat file. error: syntax of command incorrect

how this?

try this:

first.bat

@echo off call "c:\users\neonous\desktop\test.bat" "c:\program files\apache\tomcat_6" 

test.bat

@echo off set "catalina_home=%~1" echo %catalina_home% 

Comments