Georgia SoftWorks 

Home Contact Us Downloads Documentation Order/Pricing Registration

The Fastest Most Robust SSH2 / Telnet Server Available for Windows NT,  Windows XP, Windows VISTA, Windows 2000, and Windows 2003

Whats New
Features
Session Shadowing
Remote Admin.
Legacy Apps.
FAQ
News
Locate Reseller
Other Products
FeedBack
Search Site

Failure Detection and Recovery

Termination Script

Termination scripting is analogous to the Logon Scripting except it is executed when the telnet session is terminated. The commands within the file cleanup.bat are invoked upon termination of a telnet session. This is invoked with both normal and abnormal terminations. Cleanup scripting is available on both a global and per user basis as with Logon Scripting.

NOTE: No applications that require user input are allowed in the cleanup scripts.

It is especially useful for properly upmapping network connections such as drives. If you do not unmap drives when terminating the session you may be unable to connect to them the next you logon. The cleanup.bat file allows automatic unmapping of drives upon termination of the telnet session.

Example -Termination Script: Cleanup.bat file unmapping the “f” network drive

The system administrator has set up user “Adam”s logon script to map drive “f” as a network drive. In user “Adams” cleanup.bat script the system administrator will un-map the drive when the session is terminated.

Step 1. Create directory

 c:\gs_tnet\scripts\Adam

Step 2. Create batch file cleanup.bat

Step 3. Add the following line.

net use f:  /d

Step 4. Save file and exit.

This will unmap the f drive after the session is terminated.

 

Send mail to webmaster@georgiasoftworks.com with questions or comments about this web site.
Copyright © 1997 - 2008 Georgia SoftWorks. All rights reserved.
Last modified: June 24, 2008