![]() Still compact, but if you have to do some maintenace on this code, say, 3 years from now, will you still understand what it does? At first sight? SET, Take One This code may be compact, but to use the result in a variable would require additional code: OFFįOR /F "tokens=*" %%A IN ('COMMAND /C %~s0 /C %*') DO SET UpCase=%%A Though the PATH command in Windows NT 4 and later no longer converts to upper case, we can still use this feature by calling COMMAND.COM: OFF ![]() In order to use this feature on another string, you had to save the PATH to another temporary variable, then use the PATH command to save the string to be converted in the PATH variable, copy the value of the PATH variable back to the original variable, and restore the PATH variable. Convert strings to upper or lower case PATHīack in the MS-DOS epoch, the value of the PATH variable used to be all upper case, at least when set using the PATH command. VoltCraft Energy Logger 3500 Configurationīatch How To.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |