Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting


Thread Tools Rate Thread Display Modes
Old 10-27-2015, 09:34 AM
jcat9 jcat9 is offline
Registered User
Join Date: Sep 2013
Posts: 23
Call script in command line while starting SecureCRT?

Hey all,

Wondering if there's a way to do what I'm trying to accomplish.

Backstory: I'm writing an AutoHotKey script to automate some compliance auditing for my boss. This script (ideally when finished) will open SecureCRT, SSH to a few devices, log the sessions and run a few show commands to dump the configs into a text document. From there, another script will automatically open BeyondCompare 2 and compare the newly pulled configs against known good baseline configs.

I've got everything else working except this one little piece:

I'm opening SecureCRT via the 'Run' function in AutoHotkey, pointed to the .exe file path of SecureCRT on the machine. What I'm missing is the ability to automatically call the VBscript (login and show commands) once SecureCRT is opened.

Anybody have any ideas? Is there a command line switch I can add to the Run function that will tell SecureCRT to run that script upon opening?
Reply With Quote
Old 10-27-2015, 09:37 AM
jcat9 jcat9 is offline
Registered User
Join Date: Sep 2013
Posts: 23
D'oh...should have searched deeper first. Just found the /script switch.
Reply With Quote

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 03:47 PM.