Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Running UltraVNC Viewer Command line

Post Reply
ddavis66
Posts: 2
Joined: 2010-09-21 20:13

Running UltraVNC Viewer Command line

Post by ddavis66 »

I have created a .bat file to run ultra vnc viewer from a command line and this does work with the -connect host x.x.x.x functions. However, the cmd.exe window stays open after the function completes until I close the viewing window, then this will auto close within a couple of seconds. I have also tried adding start cmd.exe /R and start cmd.exe /C (does the same thing) at the start of the bat file. Any help is appreciated.

ddavis66
Airborne
Posts: 3
Joined: 2006-02-23 17:40

Re: Running UltraVNC Viewer Command line

Post by Airborne »

Hi,
did you try the parameter /wait with the start command?
When I launch "start /wait notepad.exe" from within a run.bat file (OS=W7), it launches a cmd and notepad. When I close notepad, the cmd will also be closed by the waiting start command.
Airborne
YY
200
200
Posts: 996
Joined: 2006-11-13 15:11

Re: Running UltraVNC Viewer Command line

Post by YY »

ddavis66 wrote:I have also tried adding start cmd.exe /R and start cmd.exe /C (does the same thing) at the start of the bat file.
Inside the batch file, You should use the START command to run the vncviewer. Like this:

Code: Select all

start vncviewer.exe -connect x.x.x.x
ddavis66
Posts: 2
Joined: 2010-09-21 20:13

Re: Running UltraVNC Viewer Command line

Post by ddavis66 »

I will try the START command, thanks,, another interesting thing also.. not sure if this is related to the VNC program or my .bat file. I have two other users logged in, using VNC and when the .bat file gets run,, both other sessions are closed / logged out and they need to log back into VNC. I stopped using my .bat file and they are no longer having this issue, not sure if using the START at the beginning of this will be the cure,, but I will test and let you know.

ddavis66
Post Reply