欢迎来到Doc100.Net免费学习资源知识分享平台!
您的位置:首页 > 程序异常 >

vbscript 编纂securecrt脚本

更新时间: 2014-01-05 01:52:21 责任编辑: Author_N1

 

Vbscript 编写SecureCRT脚本

Creating ActiveX Scripts

脚本通过属性及方法和SecureCRT进行交互.如果要引用SecureCRT的object一般以crt.开始

Scripts interact with SecureCRT by invoking properties and methods on SecureCRT's "top-level" or Application object or by invoking the properties and methods on "sub-objects" available through SecureCRT's application object. SecureCRT's application object is accessed in scripts with the name ‘crt’. Properties and methods on SecureCRT's sub-objects may be accessed by creating a reference to a sub-object, or through the use of VBScript’s multiple dot syntax. For example:

子对象的引用有两种方法.

1是首先建立父对象,通过父对象引用子对象.

Dim dlg

Set dlg = crt.Dialog

dlg.Prompt("Login:")

2是可以直接引用.

Or, in VBScript and Python, without creating the reference:

crt.Dialog.Prompt("Login:")

 详细的对象及参数可以参考SecureCRT帮助文档.

 

上一篇:上一篇
下一篇:下一篇

 

随机推荐程序问答结果

 

 

如对文章有任何疑问请提交到问题反馈,或者您对内容不满意,请您反馈给我们DOC100.NET论坛发贴求解。
DOC100.NET资源网,机器学习分类整理更新日期::2014-01-05 01:52:21
如需转载,请注明文章出处和来源网址:http://www.doc100.net/bugs/t/2308/
本文WWW.DOC100.NET DOC100.NET版权所有。