在SecureCRT屏幕上获取数据并存至文件中
在CRT屏幕上获取某个具体位置的文本.
可以使用Screen
对象的Get() or Get2()方法去获取屏幕上的数据.
1 Get()函数包含四个参数.文本第一个字符所在的行号,列号.最后个字符所在的行号与列号.
可以通过选择相应的文本来查看文字所处的行号与列号.
以下就可获取相应的值.
nFreeMem = crt.Screen.Get (5,36,5,41)
把数据写放到文本中
Writing data to a file using the VBScript FileSystemObject can typically be accomplished using
the following general steps:
1) Get a reference to the FileSystemObject :
Set objFSO = CreateObject( "Scripting.FileSystemObject" )
2) Use the FileSystemObject reference to retrieve a reference to a TextStream object
associated with the text file to which the data is to be written.
Const ForWriting = 2
Const ForAppending = 8
' Create a new