Set VNC run as a service
参考:http://www.realvnc.com/products/free/3.3.7/winvnc.html#2
Command-line options
The full command-line options available are as follows. You probably won't need anything other than those listed above unless you're a real VNC power-user!
- -run
- Causes WinVNC to run normally & ignore rest of command-line.
- -install
- Installs the WinVNC service and continues reading the command-line.
- -reinstall
- Removes, then re-installs the WinVNC service and continues reading the command-line.
- -remove
- Removes the WinVNC service and continues reading the command-line.
- -settings
- Tells a running copy of WinVNC to show the User Properties box.
- -defaultsettings
- Tells a running copy of WinVNC to show the Default Properties box.
- -connect [host]
- Tells a running copy of WinVNC to initiate an outgoing connection to a listening viewer running on the specified machine. This is the equivalent of the 'Add New Client' menu option. You can put multiple -connect options on one command line to connect to multiple viewers at once. If no host name is specified then the Add New Client dialog will be displayed.
- -kill
- Kills a running copy of WinVNC.
- -about
- Tells a running copy of WinVNC to show its About box.
If no options are given then WinVNC runs normally. Multiple options may be given. To upgrade a currently running WinVNC service to a new version, for example, you could use:
WinVNC_new -reinstall
which will stop & remove the old copy & install the new one as a service, or
WinVNC_new -kill -run
which will stop the running copy & run the new version as an application.