← _ToLowerCase
 
@ECHO OFF
SETLOCAL&::(Don't pollute the global environment with the following)
::*********************************************************************
SET $NAME=%~n0
SET $DESCRIPTION=Will transform a given string to lowercase and store in tolower
SET $Author=Erik Bachmann, ClicketyClick.dk (E_Bachmann@ClicketyClick.dk)
SET $Source=%~dpnx0
::----------------------------------------------------------------------
::@(#)NAME
::@(#)  %$NAME% -- %Description%
::@(#) 
::@(#)SYNOPSIS
::@(#)  %$NAME% LcwerCaseVar String
::@(#) 
::@(#)DESCRIPTION
::@(#)  Returns the string converted to lowercase letters in the environment variable given as first argument 
::@(#) 
::@(#)EXAMPLE
::@(#)      CALL _toLower _ "MixCaseString"
::@(#)      ECHO %_%
::@(#) 
::@(#)  Will produce:
::@(#)      mixedcasestring
::@(#) 
::@(#)BUGS 
::@(#)  Special characteres and diacritics are NOT converted correct
::@(#) 
::@ (#)EXIT STATUS
::@ (#)  Exit status is 0 if any matches were found, otherwise 1.
::@(#)
::@(#)SEE ALSO
::@(#)  _toUppper
::@(#)
::@(#)SOURCE
::@(#)  %$Source%
::@(#) 
::@(#)URL
::@(#)  http://windowsitpro.com/article/articleid/82861/jsi-tip-8971-how-can-i-change-the-case-of-string-to-all-upper-case-or-all-lower-case.html
::@(#) 
::**********************************************************************
::History
::SET $VERSION=xx.xxx&SET $REVISION=YYYY-MM-DDThh:mm:ss&set $COMMENT=Init Description/Initials
::SET $VERSION=01.000&SET $REVISION=2010-07-26T11:01:00&SET $COMMENT=Initial/EBP
  SET $VERSION=01.001&SET $REVISION=2010-10-20T17:15:00&SET $Comment=Addding $Source/EBP
::**********************************************************************
::(C)%$Revision:~0,4% %$Author%
::**********************************************************************
::ENDLOCAL

    SET _=%~2
    CALL :Lcase _
    @ENDLOCAL&SET %1=%_%
GOTO :eof

:LCase
    FOR %%c IN (a b c d e f g h i j k l m n o p q r s t u v w x y z ‘ › †) DO CALL SET %1=%%%1:%%c=%%c%%
GOTO :eof

::*** End of File ******************************************************