VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   Example: Use Description Field as Script Arguments (https://forums.vandyke.com/showthread.php?t=12447)

jdev 08-18-2016 11:05 AM

Example: Use Description Field as Script Arguments
 
1 Attachment(s)
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 it (because it might be session-specific, for instance).

This data can specified by editing a session's properties and within the Connection category of the Session Options window, filling in the Description field with the info you want to make available to the script. Each piece of info 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.

--Jake


All times are GMT -6. The time now is 12:10 PM.