simple case question

  • Thread starter Thread starter Kris
  • Start date Start date
K

Kris

Is there a way that I could add to a batch file to UCASE a
certain variable? for example I have a batch file that is

test.bat Arg1

I want to make sure that no matter what a user types for %
1 that it is converted to upper case, like the basic UCASE
()

thanks
 
One other solution is use vbscript to convert (given WSH is available).
Dirty but short...

===================
Echo Wscript.Echo ucase("%1")>%TEMP%\$ucase.vbs
for /f %%I in ('cscript %TEMP%\$ucase.vbs //noLogo') do Echo %%I
del %TEMP%\$ucase.vbs
===================

Gurgen.
 
Back
Top