#1
|
|||
|
|||
What's the attribute list for Config Option
Hi all,
I hope to use crt.Session.Config.SetOption, but there are no official reference book mentioning all the attribute name. What I only know is "Protocol Name", "Hostname", "Username". Thank you. James |
#2
|
|||
|
|||
Hi James,
What version of SecureCRT are you using? What is your preferred scripting language? The SessionConfiguration Object (and associated GetOption() and SetOption() methods) use the entries found in a session's INI file. Session INI files are stored in the Sessions subfolder of the configuration folder. The location of your installation's Configuration folder is found in the General / Configuration Paths category of SecureCRT's Global Options (General for versions prior to v7.2.0). The GetOption() and SetOption() descriptions in the Scripting / Script Objects Reference / SessionConfiguration Object topic of SecureCRT's Help file contain info about which of the entries can be accessed/set via these methods. D - DWORD (numeric) S - String type Z - Multi-string (array)
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
#3
|
|||
|
|||
It seems there are some configuration parameters that aren't in the .ini file. For example, where it the name of the private key file stored? Although I have the option set, it doesn't appear in my global or session-specific .ini file.
|
#4
|
|||
|
|||
Hi scottmlew,
That's correct. Some entries specific to SSH are in the SSH2.ini file in the config folder. These are *not* presently configurable via the SessionConfig object (GetOption/SetOption). I have added this thread to a feature request in our product enhancement database to add a script API for the ability to retrieve and set configuration options that are stored in the SSH2.ini file. Should a future release of SecureCRT include this feature, notification will be posted here. If you prefer direct email notification, send an email to support@vandyke.com and include Feature Request - Forum Thread #12519 in the subject line or use this form from the support page of our website.
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
![]() |
Tags |
crt.session.config , setoption |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | Rate This Thread |
|
|