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

Disconnect UVNC connection by batch from Server

Post Reply
King_of_drums
Posts: 1
Joined: 2016-12-20 11:28

Disconnect UVNC connection by batch from Server

Post by King_of_drums »

Hello,
i want to connect a uvnc client to uvnc server by a batch file and disconnect the connection also by a batch file.

The Batch to connect is on the client pc and this is working.

The Batch file for the disconnection is on the server (remote) PC. The comand -kill stops the server and disconnect the connection, but I must start the server again to connect the client again. For sure, it is possible to start the service again by a batch. But this takes some seconds.

But i think it should be possible, to disconnect the client without stopping the server.

Has someone an idea, how can i do that?

If I use the tight VNC, there is a comand -disconnectall. This comand doesn't stop the server. But I can't swap to tight vnc. I have to use ultra vnc.

Thanks for your help!!!
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Disconnect UVNC connection by batch from Server

Post by Rudi De Vos »

try,
cmd
taskkill /IM winvnc.exe /FI "SESSION ne 0" /F

this is the same as manual pressing close vnc connection.

Even when it take a few seconds, restarting ther service from a batch is possible better then force killing
nets stop uvnc_service
nets start uvnc_service
Post Reply