Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. @echo off
  2. setlocal enabledelayedexpansion
  3.  
  4. if "%1"=="help" (
  5. echo Made by Vadim Verein
  6. echo This program change the case of string. To use it type A pipe B pipe C
  7. exit /b
  8. )
  9.  
  10. if not "%1" == "" (
  11. echo Unknown command
  12. exit /b
  13. )
  14.  
  15.  
  16. set INPUTSTRING=
  17. for /F %%i in ('findstr "^"') do (set INPUTSTRING=%%i)
  18.  
  19.  
  20. CALL :LoCase INPUTSTRING
  21. echo %INPUTSTRING% 2>&1
  22. goto:EOF
  23.  
  24. :LoCase
  25. FOR %%i IN ("A=a" "B=b" "C=c" "D=d" "E=e" "F=f" "G=g" "H=h" "I=i" "J=j" "K=k" "L=l" "M=m" "N=n" "O=o" "P=p" "Q=q" "R=r" "S=s" "T=t" "U=u" "V=v" "W=w" "X=x" "Y=y" "Z=z") DO CALL SET "%1=%%%1:%%~i%%"
  26. GOTO:EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement