Batch file help, how can I get %computername% to return in lowercase?

Soldato
Joined
4 Jan 2004
Posts
20,802
Location
¯\_(ツ)_/¯
As title really, right now it gives me the uppercase name which is not what I want. Alternatively, are there any DOS commands to convert variables into lowercase?
 
Alternatively you could probably just write a simple exe to convert uppercase into lowercase and read the output back into your batch file.
 
Back
Top Bottom