Re: SVCOM - anyone know how to pass a command-line parameter?



Arthur Hoornweg wrote:
Hello all,

I use the SVCOM 7.0 framework for my NT services.

I need to pass a command-line parameter to one of my services when it starts but I can't find how. I would have asked in their forum but it appears broken currently.

The syntax I currently use is:

myservice.exe /START:servicename /PARAMS:list-of-parameters

however, when I query the parameter list using param[x], it returns only "servicename".

Any clues?





Use the SvComFindCommand method. Example:

if SvComFindCommand('console') then
ForceDebugToConsole
else
ForceDebugToFile;
.



Relevant Pages