winvnc4 commandline sequence/syntax
James Weatherall
jnw "at" realvnc.com
Wed Dec 5 12:18:01 2007
Yes, the registry key you mention below is where -register puts the
remaining arguments. -stop'ing, changing that key and -start'ing WinVNC4
should have the desired effect, although I think SCM does some caching of
the registry, so the -unregister -register method may be "safer". If you're
going to fiddle with the registry, though, why not just set the VNC server's
settings via the normal registry location?
Cheers,
--
Wez @ RealVNC Ltd
> -----Original Message-----
> From: vnc-list-admin "at" realvnc.com
> [mailto:vnc-list-admin "at" realvnc.com] On Behalf Of Peter Rosin
> Sent: 05 December 2007 09:12
> To: Dave Stoft
> Cc: vnc-list "at" realvnc.com
> Subject: Re: winvnc4 commandline sequence/syntax
>
> 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
> _______________________________________________
> VNC-List mailing list
> VNC-List "at" realvnc.com
> To remove yourself from the list visit:
> http://www.realvnc.com/mailman/listinfo/vnc-list
>