|
Answer» All,
Is it possible to force a string/variable to UPPERCASE ?You can WRITE a routine or ANOTHER bat LIKE:
Code: [Select]@echo off set /P x="Write something: " call :TOUPPERCASE %x% echo [ %x% ] goto :eof
:toUpperCase set x=%1 set x=%x:a=A% set x=%x:b=B% set x=%x:c=C% REM ... set x=%x:z=Z% goto :eof It's a little hard bye -I'm not aware of any way to do this in batch. Judging from your previous questions you might consider learning any one of many of the scripting languages (VBScript and JScript, which are installed on all Windows machines, Perl or Python, which can be downloaded free from the net and REXX which has come off license to IBM and is now AVAILABLE free on the net.
Any one of these have functions for uppercase translation and many more.
Good luck. 8-)
|