View Single Post
  #1  
Old 08-18-2016, 11:05 AM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 920
Example: 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 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
Attached Files
File Type: txt UseDescriptionFieldAsScriptArguments.vbs.txt (5.7 KB, 642 views)
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support