Charly September 17, 2010 at 19:42:28 Specs: Windows XP, Intel P4 1.6/2Gb
I'm a newbie and trying to understand the If command character (string?) comparison. In the following command line when the date is set to 23/09/2010 the command line returns True, if the date is set to Sat 23/09/2010 the return is False but I can't work out what is being compared to give/change the result. How can 23/09/2010A be less than A? Can someone lead me through the comparison please.
if "%date%A" lss "A" (echo Result is True.) else (echo Result is False.)
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.