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
After more 2 000 000 (two million) views on forum for 1.5.0.x development versions... and 1.6.1.0, 1.6.3.0-dev versions
A new stable version, UltraVNC 1.6.4.0 and UltraVNC SC 1.6.4.0 have been released: https://forum.uvnc.com/viewtopic.php?t=38095
Feedback is always welcome
2025-12-14: 1.7.1.X-dev release builds need tests and feedback: https://forum.uvnc.com/viewtopic.php?t=38134
2025-12-02: We need help: English Wikipedia UltraVNC page has been requested to deletion: https://forum.uvnc.com/viewtopic.php?t=38127
Any help is welcome to improve the UltraVNC page and/or to comment on the Wikipedia Talk page
2025-05-06: Forum password change request: https://forum.uvnc.com/viewtopic.php?t=38078
2023-09-21: Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864
Development: UltraVNC development is always here... Any help is welcome
Feedback is welcome
A new stable version, UltraVNC 1.6.4.0 and UltraVNC SC 1.6.4.0 have been released: https://forum.uvnc.com/viewtopic.php?t=38095
Feedback is always welcome
2025-12-14: 1.7.1.X-dev release builds need tests and feedback: https://forum.uvnc.com/viewtopic.php?t=38134
2025-12-02: We need help: English Wikipedia UltraVNC page has been requested to deletion: https://forum.uvnc.com/viewtopic.php?t=38127
Any help is welcome to improve the UltraVNC page and/or to comment on the Wikipedia Talk page
2025-05-06: Forum password change request: https://forum.uvnc.com/viewtopic.php?t=38078
2023-09-21: Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864
Development: UltraVNC development is always here... Any help is welcome
Feedback is welcome
Running UltraVNC Viewer Command line
Re: Running UltraVNC Viewer Command line
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
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
Re: Running UltraVNC Viewer Command line
Inside the batch file, You should use the START command to run the vncviewer. Like this: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.
Code: Select all
start vncviewer.exe -connect x.x.x.xRe: Running UltraVNC Viewer Command line
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
ddavis66
