HELP: SRVANY errors

Status
Not open for further replies.

JPS

Ars Scholae Palatinae
1,217
You guys use SRVANY a lot for DC so maybe you can help - first off, please don't say use FireDaemon - that has given me plenty of problems in this case so I have gone back to SRVANY. Anyway, I have written a simple .cmd file that would install a program, Procman, as a service, run a .reg file to set the registry parameters, and then start it using 'net start'. That is where the problem is, when ithe net start call comes, I get the following error:

The service was successfuly added!

Make sure that you go into the Control Panel and use
the Services applet to change the Account Name and
Password that this newly installed service will use
for its Security Context.
Press any key to continue . . .
Press any key to continue . . .
The Procmon service is starting.
The Procmon service could not be started.

The service did not report an error.

More help is available by typing NET HELPMSG 3534.

Press any key to continue . . .

That help msg tells me nothing. A check of the registry shows that the process was installed properly, but I cannot start it even from there. Here is the .cmd file that does all of this:

@echo off
%SystemRoot%\System32\Machine\instsrv.exe Procmon %SystemRoot%\System32\Machine\srvany.exe
pause
regedit /s %SystemRoot%\System32\Machine\ginstall.reg
pause
net start "Procmon"
end

Anyone see a problem? No sleep last night might be my problem. FWIW this is being done on W2K systems.

Thanks...
 

Berg.the.Red

Ars Scholae Palatinae
730
don't know if this will help, but ...

change:
%SystemRoot%\System32\Machine\instsrv.exe Procmon %SystemRoot%

to:
"%SystemRoot%\System32\Machine\instsrv.exe" Procmon "%SystemRoot%\System32\Machine\srvany.exe"

and:
net start "Procmon"

to:
net start Procmon

maybe throw a pause in after the net start. and i hope the end command is actually --> :end.

me personally - i'd loose the %SystemRoot% variable too, and replace it with a good old x:\WinNT. never had much use for that particular environment variable ...

the syntax for the commands is different for the quoting. ( and we all know how forgiving NT is with syntax !! ;) ) this is actually a straight cut-an-paste of one that lowcrawler posted for Genome, and i've modified it for both Genome and Folding. SETI is going to be next. the actual reg files might help too ...
 

Hat Monster

Ars Legatus Legionis
47,680
Subscriptor
That's one thing that *seriously* pisses me off about Win2k. You can't use %xxx% universally. A similar method was one of the big things I liked about Amiga, they actually became real paths, virtual mount points so to speak. "assign dh2:graphics GFX:" would make GFX: a virtual drive, accessible to absolutely anything.
So if in doubt, use the real path.

H@
 
Status
Not open for further replies.