Thread: Get Options?
View Single Post
  #2  
Old 05-29-2019, 04:06 PM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 920
Quote:
Originally Posted by ssetbob7 View Post
Is there a list of objConfig.GetOption("xxxxx") options? Or maybe a printout of all options for a session? And are some not changeable, meaning read-only?
Option names are discovered by looking underneath the hood in the Sessions subfolder of SecureCRT's Configuration folder. Open the Default.ini file (but don't make any changes... you don't want to corrupt it) and you'll see the format as in...
Code:
.
.
.
S:"Hostname"=
S:"XAuthority File"=
S:"XServer Host"=127.0.0.1
D:"Enforce X11 Authentication"=00000001
D:"Request Shell"=00000001
S:"Keyboard Interactive Prompt"=ssword
D:"Disable Initial SFTP Extensions"=00000000
D:"Max Packet Size"=00001000
S:"Firewall Name"=None
S:"Sftp Tab Local Directory V2"=${VDS_USER_DATA_PATH}
S:"Output Transformer Name"=UTF-8
D:"Use Global ANSI Colors"=00000001
S:"Sftp Tab Remote Directory"=
S:"Username"=myusername
.
.
.
S: represents a string value -- name is in ""s.

D: represents a DWORD value -- name is in ""s. These are not only for numeric values, but also for:
  • true|false values (0=false/off; 1=true/on)
  • tri-state values (0=false/off; 1=true/on; 2=defer-to-global-option's-value), and
  • radio button values (0=top-most option; 1=next-option-after-that; 2=next-option-after-that, etc.).

B: represents a binary value. These cannot be set from within a script, nor can they be manually edited.

Z: represents a multi-line string value. For example "Description" sets the text of the "Description" field in Session Options.

Yes, there are some fields that cannot be changed.

What, specifically, are you looking to accomplish?

--Jake
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support
Reply With Quote