Sample scripts

SecureCrt

Download securecrt.tlb type library


# $language = "VBScript"
# $interface = "1.0"

'library:c:\mytypelib\securecrt.tlb
'Dim crt As SecureCrt.crt

' Use CRT's script object Rows and Columns properties to send settings
' for the LINES and COLUMNS environment variables when these variables
' aren't being set properly by the remote system.

Sub Main
  lines = crt.Screen.Rows
  cols = crt.Screen.Columns

  ' send bourne shell/korn shell command
  ' crt.Screen.Send "export LINES=" & lines & " COLUMNS=" & cols & Chr(13)

  ' send csh shell command
  '
  crt.Screen.Send"setenv LINES " & lines & "; setenv COLUMNS " & cols & Chr(13)

EndSub


VbsEdit provides Intellisense for SecureCRT!


This package includes VbsEdit 32-bit, VbsEdit 64-bit, HtaEdit 32-bit and HtaEdit 64-bit.
The evaluation version never expires.




Home  

Copyright © 2001-2017 Adersoft