Object CRT in VB script

1k views Asked by At

Trying to debug the scripts for Secure CRT by Vbsedit

Function Get_Session_Path()
    Get_Session_Path = crt.session.path
    crt.Dialog.MessageBox("inside Session path" &Get_Session_Path) &chr(13) 
End Function    

Trying to compile the above code using Vbsedit but getting a error thrown by 'Wscript'

"Object required 'crt' Code 800A01A8 source Microsoft VBScript runtime error"

Am I missing any library or we can not debug Secure CRT VBscript via vbsedit

1

There are 1 answers

2
Dave On

The SecureCRT API (the crt object) is not externally exposed. Only SecureCRT can access it, so SecureCRT must be used to run the script...