User Tools

Site Tools


sc

sc

How to use MS Service Create Utility

This installs the JACS in Win7. Note that binpath= must be followed by a space.

sc create JACS binPath= "C:\Progra~2\Instan~1\VASmal~1\9.1x86\abtntsrv.exe -srvName whJACS -iwhJacs.icx -ini:vmcfg.ini -lwhJacs.log -srvWorkingDir C:\jas\services" 

This installs the JACS in XP. Note that binpath= must be followed by a space. whJacs.exe is a copy of abtntsev.exe.

sc create whJACS binPath= "C:\Progra~1\JAS\bin\whJACS.exe -srvName whJACS -i.\whJacs.icx -ini:vmcfg.ini -lwhJacs.log -srvWorkingDir C:\Progra~1\JAS\jacs"

and puts this in the registry:

C:\Progra~1\JAS\bin\whJACS.exe -srvName whJACS -i.\whJacs.icx -ini:vmcfg.ini -lwhJacs.log -srvWorkingDir C:\Progra~1\JAS\jacs

So does this in XP. Note the escaped quotes.

sc create whJACS binPath= "C:\Progra~1\JAS\bin\whJACS.exe -srvName whJACS -i.\whJacs.icx -ini:vmcfg.ini -lwhJacs.log -srvWorkingDir C:\Progra~1\JAS\jacs"

and puts this in the registry:

C:\Progra~1\JAS\bin\whJACS.exe -srvName whJACS -i.\whJacs.icx -ini:vmcfg.ini -lwhJacs.log -srvWorkingDir C:\Progra~1\JAS\jacs

.

This example from https://stackoverflow.com/questions/3663331/when-creating-a-service-with-sc-exe-how-to-pass-in-context-parameters/11084834

sc create svnserve 
   binpath= "\"C:\Program Files\CollabNet Subversion Server\svnserve.exe\" --service -r \"C:\my repositories\"  "
   displayname= "Subversion Server" depend= Tcpip start= auto 

this ^^^ creates what is below

"C:\Program Files\CollabNet Subversion Server\svnserve.exe" --service -r "C:\my repositories"

.

sc.txt · Last modified: 2018/09/25 10:26 by 127.0.0.1