PDA

View Full Version : Case sensative when doing string comparison



joe_gan
01-09-2002, 11:30 AM
Hi,

I am wondering why my PC at the office is case sensative while the one at home is not?

PC Spec.
Office: Windows98
Home: Windows95B
Both : WSH5.6

Sample code.
If "Readme.txt" = "Readme.TXT" Then
wscript.echo "Identical"
Else
wscript.echo "Difference"
End If

==============
Output:
Office one : "Difference"
Home one : "Identical"

What has happen to my office PC???

darkness
01-09-2002, 04:41 PM
Good Question I will look it up on MSDN. But one quick question are both coomputers on the same version of Windows Scripting Engine? 5.6?

Michael McLaughlin/images/forums/icons/smile.gif
Systems Manager
Minnesota State University Mankato

joe_gan
01-11-2002, 10:56 AM
Yes, both are running on WSH5.6