Creating a script

Top  Previous  Next

A script is a set of tasks that are to be performed in sequence. A TelnetScript instance represents the script containing one or more tasks to be executed on the telnet server. To define a script, create a new TelnetScript instance passing a Telnet instance as an argument to its constructor.

 

Example

 

[C#]

// Create telnet instance

Telnet telnet = new Telnet("10.0.0.1");

 

// Create TelnetScript script instance by passing in Telnet instance

TelnetScript script = new TelnetScript(telnet);

 

 

[Visual Basic]

Private WithEvents myTelnet As Telnet

' Create telnet instance

myTelnet = New Telnet("10.0.0.1")

 

' Create TelnetScript script instance by passing in Telnet instance

Dim script As TelnetScript = New TelnetScript(myTelnet)





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC