Lowercasing a string in BAT files
lower-case a string given as an argument.
echo>%1 dir /b/l %1>lower.tmp set /p result=<lower.tmp echo %result%
Saving this as lower.bat, I run
lower "HELLO WORLD"
and get
hello world
as a result
12361 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
echo>%1 dir /b/l %1>lower.tmp set /p result=<lower.tmp echo %result%
lower "HELLO WORLD"
set foo `bar`
bar>bar.tmp set /p foo=<bar.tmp
bar | set /p foo=