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)
YouTube Channel: https://www.youtube.com/vandykesoftware
Last edited by jdev; 01-30-2018 at 01:13 PM.
|Display Modes||Rate This Thread|