I\'m automating some source control software functionality using a dot bat script but given that our svn repos are hosted in a *NIX box, I\'m facing the eternal case problem
When a scripting language is installed then that can be used with a "FOR" to set a variable.
Any scripting language can be used if it can convert a string to lowercase and output the result.
@FOR /F %%s IN ('perl -e "print lc(pop)" %USERNAME%') DO @set USERNAME=%%s
@FOR /F %%s IN ('powershell -command "(get-item env:'USERNAME').Value.ToLower()"') DO @set USERNAME=%%s
These days, odds are that PowerShell is already installed by default.