View Single Post
Old 12-08-2017, 02:55 PM
bgagnon bgagnon is offline
VanDyke Technical Support
Join Date: Oct 2008
Posts: 4,219
Hi mschaafs,

What version of SecureCRT are you using?

On what platform/OS?

Your code worked for me with one minor change. You are not specifying a session to be opened. If you want to just make an ad hoc connection, then use /SSH2 hostname instead of /S SessionName:

objTab = crt.Session.ConnectInTab("/S SessionName");

I am not sure a manual on JScript is ever feasible (Python would be the next one up), but I have added this thread to a feature request in our product enhancement database for more JavaScript examples. Should a future release of SecureCRT include this feature, notification will be posted here.

If you prefer direct email notification, send an email to and include "Feature Request - Forum Thread #12935" in the subject line or use this form from the support page of our website.

VanDyke Software
Technical Support
(505) 332-5730
Reply With Quote