Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting

Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 03-28-2019, 11:47 AM
Reno Reno is offline
Registered User
Join Date: Mar 2019
Posts: 34
VBScript how to ignore Case with Screen.WaitForString

I'm working on a script that (in a loop) SSH's into multiple VM's. I've noticed that randomly (or with certain VM's) the prompt indicating the VM name may be upper case or lower case.

Example: With the inserted text from the array, I need to make the inserted array value case insensitive like where you would UCase two strings to compare them in a case insensitive way.

crt.Screen.WaitForString "[root@" & my_array(x,1) & "admin]# "


Last edited by Reno; 03-28-2019 at 11:47 AM. Reason: type-o
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
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 02:24 PM.