【问题标题】:Object CRT in VB scriptVB 脚本中的对象 CRT
【发布时间】:2015-06-10 09:01:52
【问题描述】:

尝试通过 Vbsedit 调试 Secure CRT 的脚本

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

尝试使用 Vbsedit 编译上述代码,但收到由 'Wscript' 引发的错误

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

我是否缺少任何库或者我们无法通过 vbsedit 调试 Secure CRT VBscript

【问题讨论】:

    标签: vbscript wsh secure-crt


    【解决方案1】:

    SecureCRT API(crt 对象)不对外公开。只有 SecureCRT 可以访问,所以必须使用 SecureCRT 来运行脚本...

    【讨论】:

    • 这是否意味着无法将 VBSedit 与 SecureCRT 一起使用?还是有什么诀窍?
    • 据我所知,没有办法直接使用 VBSEdit。您可以在其中构建代码以使用这些功能,但必须将代码复制到 SecureCRT 会话中才能运行它
    猜你喜欢
    • 2017-05-26
    • 1970-01-01
    • 2017-11-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多