Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/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://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Keep SC Running for More than 5 min

Single Click discussions / bugs
Post Reply
strestus
Posts: 3
Joined: 2007-07-14 00:43
Contact:

Keep SC Running for More than 5 min

Post by strestus »

Hi is there anyway to make SC trying to connect for more than 5 min ?


My idea is to post link on my IT support web site


for people to download the SC and than within 5 hours I will access their computer to help them , but the problem is that if I am late for more than 5 minutes will have to ask them again to download an try to connect.

Any help appriciated

[mod=494,1184453548]removed banner[/mod]
Last edited by strestus on 2007-07-14 22:52, edited 2 times in total.
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: Keep SC Running for More than 5 min

Post by redge »

5min is hard coded.
if you know how to modify and compile the code, you can hack the code for change the default value 5 min to 300min
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
strestus
Posts: 3
Joined: 2007-07-14 00:43
Contact:

Re: Keep SC Running for More than 5 min

Post by strestus »

Well If I could I would :-D

Is there anyone here that could do this for me or guide me how to do it ?


I think it might be helpfull for other people as well
YY
200
200
Posts: 996
Joined: 2006-11-13 15:11

Re: Keep SC Running for More than 5 min

Post by YY »

I don't know how to modify the SC source to produce the said feature, but I wrote a simple DOS batch file (tested with WinXP) that can auto-restart the sc.exe if it is terminated -- either due to time out because remote host is not yet reached, or an established connection is broken

You need to create a dedicated SC.exe and a .BAT for this purpose.

1. the SC.exe
This SC must only have one [HOST] definition (Obviously!), and will connect to this host automatically once excuted (use the [DIRECT] command). So the content of the helpdesk.txt s/b like this:

[HOST]
Direct To YY's DeskTop
-connect desktop-yy.dyndns.org:5500 -noregistry
.........
.........
[DIRECT]


2. the Auto-Restart.BAT
Use a text editor to create the file with these three lines:
:StartSC
START /WAIT SC.exe
GOTO StartSC



That all! Put this 2 files together, and double click the Auto-Restart.BAT, it will try (and re-try) to make the connection.
Close the DOS windows will terminate the Auto-Restart.BAT and thus stop the auto-restart operation.

Note: You must use the REL 1.0 online creator to produce the SC.exe, [DIRECT] command is not supported in RC23.
Post Reply