Thank you. It works.
But isn't there a "cleaner" way to give params than hard coding them in the script ?
I usually make a copy of the service.bat file, say as service_jbas50.bat, and make the changes in there. I also change the script reference on this line:
jbosssvc.exe -imwdc %SVCNAME% "%DIRNAME%" "%SVCDISP%" "%SVCDESC%" service_jbas50.bat
I also don't hard-code the parameters within the statements in the script - instead I set some env vars at the start of the script and use them later. For an example, download the source code for JBoss in Action (http://www.manning.com/jamae), and in jbia-src/ch15 run ant target 04.
Thank you Peter. It works fine.
Indeed, I find that cleaner.
Thank you for your help