Batch – Converting variable to uppercase

The shortest way (without requiring 3rd party downloads) would be to use PowerShell. set “str=The quick brown fox” for /f “usebackq delims=” %%I in (`powershell “\”%str%\”.toUpper()”`) do set “upper=%%~I” A faster way but still using less code than any pure batch solution would be to employ WSH. @if (@CodeSection == @Batch) @then @echo off & … Read more