Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: wntsvccreate 531 invalid parameter
AddExtender("WWWNT34i.DLL") ServiceName="Computer Browser" DisplayName="Browser" BinaryPathName="C:\svcs\Listener.exs" LoadOrderGroup="" ServiceStartName="newtest" Password="hello" createstring=Strcat(ServiceName,"|",DisplayName,"|",BinaryPathName,"|",LoadOrderGroup,"|",ServiceStartName,"|",Password) ServiceType=256|16 StartType=3 ErrorControl=0 createflags=strcat(ServiceType,"|",StartType,"|",ErrorControl) wntSvcCreate("", createstring, createflags, "","") Message("Done","Added a service to the service control manager database.") exit
My guess is that the service has already been added. I like to add a check to the beginning of my script to delete the existing service before attempting to create it, to avoid this type of problem....
ret = wntSvcStatus("", ServiceName, 0, 0) if ret==@TRUE wntSvcDelete( "", ServiceName, 1000) Endif
Article ID: W15209
File Created: 2002:09:05:13:50:36
Last Updated: 2002:09:05:13:50:36