Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting

Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 01-01-2020, 07:02 AM
kimhieu kimhieu is offline
Registered User
Join Date: Jan 2020
Posts: 2
Run script, but only run on one window with many tabs

I have a script ( test.vbs)

Sub Main()

crt.Screen.Synchronous = True
crt.Session.Connect "/TELNET"
crt.Screen.WaitForString "name:", 1
crt.Screen.Send "redacted" & vbCr
crt.Screen.WaitForString "password:", 1
crt.Screen.Send "redacted" & vbCr

End Sub

In VB6, I run SecureCRT by this command
Shell PathSecure + " /SCRIPT D:\test.vbs"

The problem is each times run command, will have one window appear to run script to telnet. Run 10 times , they will have 10 secureCRT windows.

I want that each times run command, my script will run on other tabs in same one window ( not open a another secureCRT window)

Please help me in this case.

Thank you

Last edited by bgagnon; 01-01-2020 at 09:41 AM.
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
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 02:33 PM.