Running VNC from batch
Para-Tech
Para-Tech "at" Earthlink.net
Tue May 8 00:41:01 2007
You can open a VNC session and select to save it.
If you chose to save it WITH the password you have everything you need for
your batch file.
Save the session to a local folder (or for security save it to a flash drive
so you can take it with you)
When writing your batch file tell it to run the saved VNC session and direct
it to the shortcut that you just saved.
It will look something like this if read with notepad:
[connection]
host=xxx.xxx.xxx.xxx
port=xxx
password=xxxxxxxxxxxxxxxx
[options]
use_encoding_0=1
use_encoding_1=1
use_encoding_2=1
use_encoding_3=0
use_encoding_4=1
use_encoding_5=1
use_encoding_6=0
use_encoding_7=0
use_encoding_8=0
use_encoding_9=0
use_encoding_10=0
use_encoding_11=0
use_encoding_12=0
use_encoding_13=0
use_encoding_14=0
use_encoding_15=0
use_encoding_16=1
preferred_encoding=16
restricted=0
viewonly=0
fullscreen=0
autoDetect=1
8bit=1
shared=0
swapmouse=0
belldeiconify=0
emulate3=1
emulate3timeout=100
emulate3fuzz=4
disableclipboard=0
localcursor=1
scale_num=1
scale_den=1
The "x" would represent the IP, port, and password.
I currently use this now.
Enjoy........
-----Original Message-----
From: vnc-list-admin "at" realvnc.com [mailto:vnc-list-admin "at" realvnc.com] On
Behalf Of Marc Cram
Sent: Monday, May 07, 2007 9:59 AM
To: vnc-list "at" realvnc.com
Subject: RE: Running VNC from batch
This is pretty much what I wanted to know.
I am a computer teacher and wanted to monitor the machines in my
classroom using vnc. To do this I am going to use a batch file that
will bring all the machines in my classroom up on my computer screen at
once instead of having to go to each machine and log into it.
Marc Cram
-----Original Message-----
From: Corne Beerse [mailto:cbeerse "at" gmail.com]
Sent: Monday, May 07, 2007 2:41 AM
To: Marc Cram
Cc: vnc-list "at" realvnc.com
Subject: Re: Running VNC from batch
Marc Cram wrote:
>I wanted to run VNC from a batch file, but I can't figure out how to
>enter the password from the batch after the connection has been made.
>Does anyone know how to do this.
>
>
>
What do you want to do from batch? On what system?
`vncserver` on unix is a script to call `Xvnc`. You can peek in there to
see how it works and have your script do these things a little more
hardcoded.
`vncserver` on a windows machine comes with shortcuts that can be used.
Peek in the properties on how this is used. The command line can be used
in your script.
`vncviewer` on both unix and windows has a bunch of options. Start it
from the commandline with the -help option and you see the options you
can use. One of the options is to use a *.vnc file. You can create this
from a running session under the <F8> menu. You will be prompted to
include the password for the session, if you do so, the password is
encrypted in the file, however, the entire file is usable for everyone,
so keep it on a save place.
CBee
_______________________________________________
VNC-List mailing list
VNC-List "at" realvnc.com
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list