#1
|
|||
|
|||
VBscript SecureCRT Run Outside
Here's my first simple script I have a questions about:
Code:
Language="VBScript" Interface="1.0" call Main Sub Main() Run "C:\Program Files\VanDyke Software\SecureCRT\SecureCRT.exe" 'crt.Session.Connect "/Serial COM6 /BAUD 9600" End sub Sub Run(ByVal sFile) Dim shell Set shell = CreateObject("WScript.Shell") shell.Run Chr(34) & sFile & Chr(34), 1, false Set shell = Nothing End Sub I suspect because crt.whatever is only interpretable when you actually "Run" the script from within secureCRT, is that right? Ideally, I'd like to be able to just double click on the script (as I'm doing now) and have it open CRT and then be able to do what I want. Is this possible, or do you have to run it from within CRT? |
Thread Tools | |
Display Modes | Rate This Thread |
|
|