Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Notices

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #16  
Old 01-18-2016, 11:50 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,305
I can explain this in more detail.
strResult = crt.Screen.ReadString(vbcrlf)
Your line of code above tells ReadString() to start capturing data until it finds a carriage return and a line feed. When ReadString() finds this set of characters, it returns the data captured in the form of a variable named strResult.

Jake indicated that you need to modify the line above to look for your shell prompt rather than a carriage return and a line feed. For example, if your prompt is my_prompt$, you would modify your line of code as follows:
strResult = crt.Screen.ReadString("my_prompt$")
Making this modification will tell ReadString() to capture date until it finds the string my_prompt$ at which time it will return the captured data in the form of the variable strResult.
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 09:21 PM.