View Single Post
  #1  
Old 11-20-2017, 12:49 PM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 938
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, 912 views)
Attached Files
File Type: txt SendASCIILineByLine(WithSkipCapability).vbs.txt (26.3 KB, 809 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 01:13 PM.