tolower
Posted: 04 May 2010 12:09
Hi, I'm trying to use the tolower function described in the below page. I think this is a simple syntax problem since I'm relatively new to DOS functions.
http://www.dostips.com/DtTipsStringOper ... on.toLower
I'm trying to take %username% and make it all lower case (or even upper case). Since when I test for "if %username%==administrator" it depends on weather I choose to logon as Administrator or administrator or ADMINistrator.
I've tried (yes, I copied the function into my bat file):
call:tolower %username%
call:tolower %username% %username%
call:tolower %username% %usernamelower%
None of these result in my user name with all lowers.
Any help is appreciated.
http://www.dostips.com/DtTipsStringOper ... on.toLower
I'm trying to take %username% and make it all lower case (or even upper case). Since when I test for "if %username%==administrator" it depends on weather I choose to logon as Administrator or administrator or ADMINistrator.
I've tried (yes, I copied the function into my bat file):
call:tolower %username%
call:tolower %username% %username%
call:tolower %username% %usernamelower%
None of these result in my user name with all lowers.
Any help is appreciated.