This content has been marked as final. Show 4 replies
I think your problem is something very common, you need to leave a space between start= and auto (Example: start= auto)
Here is how I create my services, part of a batch file that creates the Domains.
sc.exe create SunJavaSystemAppDomain1 binPath= "C:\Sun\sdk\lib\appservService.exe \"C:\glassfishv3\glassfish\bin\asadmin.bat start-domain domain1\" \"C:\glassfishv3\glassfish\bin\asadmin.bat stop-domain domain1\ "" start= auto
sc.exe description SunJavaSystemAppDomain1 "Sun Application Server for Domain1"
sc.exe start SunJavaSystemAppDomain1