VanDyke Software

Scripting Examples

Index

Use Description Field as Script Arguments

This example script shows how you can use the Description field of a saved session to store data that you need to use somewhere within your script, but you don't want to hard-code (because it might be session-specific, for instance).

This data can be specified by editing a session's properties and within the Connection category of the Session Options window, filling in the Description field with the information you want to make available to the script. Each piece of information should be on its own line within the Description field, and be prefaced with "ARG:" as exemplified by the comments within the script code itself.

Example Scripts

UseDescriptionFieldAsScriptArguments.py.txt (5.38 KB)
UseDescriptionFieldAsScriptArguments.vbs.txt (5.7 KB)

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.