Rafael,

You are in the wrong forum.  You should look at terminal services topics, not 
VFP.  There are settings in the terminal services manager (start -> run -> 
tsadmin), where you can have the server automatically disconnect broken 
sessions.  Also, take a look at the user setup within active directory to 
change those settings.

You may want to consider enabling terminal services licensing on the server to 
get more than 2 simultaneous sessions.  It also gives you more control over 
broken sessions on the server.

Good luck.


Thanks,
Dan Neuman

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Thursday, October 02, 2008 7:53 AM
To: [EMAIL PROTECTED]
Subject: VFP app and terminal server

I have and app, installed in a Windows 2003 server, that is accessed locally by 
a number of machines, and using remote desk top by one branch of the company.

I set up the access in a manner such that when the user clicks the RDT 
connection icon, my app starts and when he closes the app, the RDT connection 
is closed, and everything works normally.

However, the branch is in a small town, with a very poor internet connection, 
or rather, a very unreliable ISP. Very often, we suffer disconnections, without 
previous warning.

In this case, it is very usual that the maximum of two RDT connections is 
reached in one day (the branch manager starts the app again) and the following 
morning the branch cannot connect, because, when the internet connection is 
lost, the Windows Server does not close the session automatically. And then I 
have to access the server and close those open connections manually.

I would like to set up a script in the server, so by just clicking on an icon, 
all open connections are closed. This is to be done by the company manager 
only, but I do not want to teach him how to do this manually. Therefore, my 
need for a script to be launched from an icon on the server.

I would appreciate to be shown how to write that script (code please!!)

Thank you all

Rafael Copquin



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to