winvnc4 commandline sequence/syntax
Peter Rosin
peda "at" lysator.liu.se
Wed Dec 5 09:12:01 2007
On Tue, Dec 04, 2007 at 04:09:56PM -0800, Dave Stoft wrote:
> My conclusion has been that I have misunderstood the syntax or
> application
> of the syntax with the command-line method but I have been unable to
> locate
> explicit examples to show where I made the error(s). Can you point to
> the flaw(s)
> in my understanding or methodology?
>
> Thank in advance to anyone with suggestions.
The command line arguments to the service is specified in the registry.
You should change
HKLM\System\CurrentControlSet\WinVNC4\ImagePath
from the typical "C:\Program Files\RealVNC\VNC4\winvnc4.exe" -service
to something of your liking, e.g.
"C:\Program Files\RealVNC\VNC4\winvnc4.exe" -service -vncconfigfile C:\vnc\my_config_file.vnc
(Please note that the actual executable needs to be surrounded with quotes
if its path contains spaces. I don't know how you should quote spaces
in the arguments, that might depend on the winvnc4 implementation.)
After that, do "winvnc4 -start"
There is no need to register/unregister around each start/stop.
Disclaimer: This is all untested, but I beleive it matches what Wez said.
Cheers,
Peter