前面几个测试后 或多或少的有些问题 写一个
- @echo off&setlocal enabledelayedexpansion
- for /f "delims=" %%i in ('more/e +9 %0') do (
- set "str=%%i"
- call set "var=%%str:*a=!str!a%%"
- call set "var=%%var:!str!=%%"
- if not "!var!"=="" (
- call set "var1=%%str:!var!=%%"
- set "var1=!var1:0=!"&echo !var1!!var!) else echo %%i)
- pause>nul&exit
- 560000h57
- 0000acb0ha22a
- 0b0c00a00a0s
- 0000h00ga0a0
- a00000000a
- 0000h00g200
- 00000000a0a
- a00000000
- 00000000a
- aaaaa
复制代码
|