View Single Post
Old 03-28-2019, 11:47 AM
Reno Reno is offline
Registered User
Join Date: Mar 2019
Posts: 35
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