VanDyke Software

Scripting Examples


Iterate Over Saved Sessions

These example scripts demonstrate how to iterate over saved sessions in SecureCRT's configuration folder's Sessions subfolder.

There isn't yet a native scripting API provided by SecureCRT for accessing saved sessions (say, from the Session Manager), so the way to go about this is to iterate over the .ini files in the Sessions subfolder of SecureCRT's configuration folder, and use the full file system path information to build up a session manager path (as it appears in the Session Manager) so that you can load the configuration using the crt.OpenSessionConfiguration(strSessionMgrPath) method to get a reference to the Config object for a specified session.

Example Scripts

VanDyke Software uses cookies to give you the best online experience. Before continuing to use this site, please confirm that you agree to our use of cookies. Please see our Cookie Usage for details.