| @echo off | | set "str=bBAathToHOMmEe" | | echo;%str%>%temp%\$ | | sed "s/[A-Z]//g" %temp%\$ | | sed "s/[a-z]//g" %temp%\$ | | del %temp%\$COPY |
| @echo off | | set "str=bBAathToHOMmEe" | | | | :lp | | set "ch=%str:~,1%" | | for %%a in (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,e,s,t,u,v,w,x,y,z) do ( | | if "%%a"=="%ch%" (set "LowerCASE=%LowerCASE%%%a") | | ) | | for %%a in (A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z) do ( | | if "%%a"=="%ch%" (set "UperCASE=%UperCASE%%%a") | | ) | | set "str=%str:~1%" | | if "%str%" neq "" goto :lp | | echo;%LowerCASE%%UperCASE%COPY |
|