@if "%1" == "install" goto cmdInstall @if "%1" == "uninstall" goto cmdUninstall @if "%1" == "start" goto cmdStart @if "%1" == "stop" goto cmdStop @if "%1" == "restart" goto cmdRestart echo Usage goto cmdEnd
I assume the '.bat' is the only option - i.e. could you use arbitrary 'executables' or other 'scripting languages' ? I.e. if you have cygwin or equivalent installed - could it execute a .sh ? Or if you have different scripting engine - could it run the .js or .py instead of .bat? And the most interesting - could you specify an executable .jar as the command ?
It's just that .bat is one of the ugliest scripting languages...
Having the unix-style service mechanism, i.e. a script with start/stop/etc is IMO a step forward and makes it much easier to
deal with services.
Costin
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]