- @echo off
- set letters=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
- setlocal enabledelayedexpansion
- (for /f "delims=" %%a in (a.txt) do (
- set str=%%a
- set str1=!str:~1!
- set str2=!str:~,1!
- for %%i in (%letters%) do if /i "%%i"=="!str2!" set str2=%%i
- echo,!str2!!str1!
- ))>b.txt
复制代码
|