Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-20-2017, 11:49 AM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 930
Post Example: Send Lines One-by-One with Skips and Substitution Variables

This example brings up a separate UI which provides you with an interface to browse for a file that has lines/commands you'd like to send to the remote, one by one.

Substitution variables are supported. If you have a template set of lines/commands, you can use variables to leverage that to send the same set of commands to different hosts simply by changing the values of the variables. Variables are defined using the pattern: $var_name:=variable value

You can also skip lines if you want to move past specific ones that you don't need/desire to send to the remote.
Download the script file: SendASCIILineByLine(WithSkipCapability).vbs.txt.

The interface can also be used as a mechanism for reviewing or modifying what's currently in the clipboard prior to it being sent to a remote machine (assuming you want to send it line by line, one at a time).

Demonstrates one way of building a customized window/dialog using IE and handling user interaction within the custom dialog (see the VBScript user guide here: http://www.vandyke.com/support/tips/...ing/index.html)


--Jake
Attached Images
File Type: png Forum_SendASCIILine-by-LineScriptExampleUsage.png (45.0 KB, 839 views)
Attached Files
File Type: txt SendASCIILineByLine(WithSkipCapability).vbs.txt (26.3 KB, 754 views)
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support

Last edited by jdev; 01-30-2018 at 12:13 PM.
Closed Thread

Tags
example script


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 05:03 PM.