View Single Post
Old 10-02-2020, 03:14 PM
cboyack cboyack is offline
VanDyke Technical Support
Join Date: Apr 2020
Location: Albuquerque, NM
Posts: 129
Post Example: Send Command With Date/Time Substitutions

An example which allows SecureCRT to automatically convert date/time substitution parameters (e.g. %Y, %M, %D, etc.) when sending a command.

For example, the following command template...
scp /filesystem/folder/backup.tar.gz
... would become ...
scp /filesystem/folder/backup.tar.gz
... if the command was sent on Oct 2, 2020, just past 11:13:27 AM.

How to get started with this example script:
  1. Download and save this example script to your local machine

  2. Create a Run Script Button/Command using either SecureCRT's Button Bar or SecureCRT's Command Manager
  3. Use your new Command/Button whenever you want to send the command with dynamic date/time substitution.
Attached Images
File Type: png RunScriptCommandPropertiesExample.PNG (14.8 KB, 334 views)
File Type: png CommandManagerDateTimeSubstitutionExample.PNG (42.4 KB, 325 views)
Attached Files
File Type: txt (3.5 KB, 279 views)

VanDyke Software
Technical Support
(505) 332-5730