Example: Store Command Results in the Clipboard
Update: jdev: 05-19-2017, 2:57pm : Support for a new command line argument has been implemented (/WriteToFile:PathToOutputFile) to allow for captured data to be written to a file as well.
This example script is mentioned in a demonstration as part of the Advanced Copy & Paste video on our You Tube channel.
The script does the following:
Script arguments have been implemented to allow for changing of specific behaviors.
For example, you could map a button (using SecureCRT's Button Bar) to run the script, and in the Arguments field you could specify one of the supported arguments to get slightly different behavior as described below:
' Supported Arguments (change script's behavior to match your preferences): ' /CaptureStartingEOL:True|False If specified as True, the leading ' line ending character sequence is ' captured and included in the clipboard ' as part of the output of the command. ' If not specified, or set to False, the ' leading EOL character sequence is ' OMITTED from the output that is stored ' in the clipboard. ' ' /CaptureTrailingEOL:True|False If specified as True, the trailing ' EOL character sequence is captured and ' included in the clipboard as part of the ' output of the command. ' If not specified, or set to False, the ' trailing EOL character sequence is ' OMITTED from the output that is stored ' in the clipboard. ' ' /CaptureOnlyCmdOutput: True|False If specified as True (default), only the ' command output will be copied to the ' Clipboard. If specified as False, both ' the command issued and the results are ' copied to the Clipboard. ' ' /WriteToFile:"PathToOutputFile" If this option is present, the script ' will write the results to the file ' specified in the PathToOutputFile ' value.
YouTube Channel: https://www.youtube.com/vandykesoftware
Last edited by jdev; 05-19-2017 at 04:05 PM.
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Display Modes||Rate This Thread|