Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/04/2008, 01:54
Avatar de dogduck
dogduck
 
Fecha de Ingreso: enero-2006
Ubicación: ¿Atlantida, Hesperides, Islas afortunadas?
Mensajes: 2.231
Antigüedad: 18 años, 10 meses
Puntos: 19
Re: Fichero por lotes (.bat) MS-DOS

Para pasar de minusculas a mayusculas te paso un script mio.
Funciona para la shell cmd a partir de XP/2K3 en adelante.

@echo off
echo Script Mayus
echo -------------
echo.
echo.
echo Introduce una palabra o frase:
set /P inputstring=
echo.
echo La vamos a pasar todo a mayusculas

set inputstring=%inputstring:a=A%
set inputstring=%inputstring:b=B%
set inputstring=%inputstring:c=C%
set inputstring=%inputstring:d=D%
set inputstring=%inputstring:e=E%
set inputstring=%inputstring:f=F%
set inputstring=%inputstring:g=G%
set inputstring=%inputstring:h=H%
set inputstring=%inputstring:i=I%
set inputstring=%inputstring:j=J%
set inputstring=%inputstring:k=K%
set inputstring=%inputstring:l=L%
set inputstring=%inputstring:m=M%
set inputstring=%inputstring:n=N%
set inputstring=%inputstring:ñ=Ñ%
set inputstring=%inputstring:o=O%
set inputstring=%inputstring:p=P%
set inputstring=%inputstring:q=Q%
set inputstring=%inputstring:r=R%
set inputstring=%inputstring:s=S%
set inputstring=%inputstring:t=T%
set inputstring=%inputstring:u=U%
set inputstring=%inputstring:v=V%
set inputstring=%inputstring:w=W%
set inputstring=%inputstring:x=X%
set inputstring=%inputstring:y=Y%
set inputstring=%inputstring:z=Z%


echo.
echo la palbra o frase en mayusculas es: %inputstring%

echo.
echo.
echo pulsa una tecla para finalizar
pause > nul
rem Javier Castañón 2.008



salu2