- @echo off
- setlocal enabledelayedexpansion
- (for /f "delims=" %%a in (hex.txt) do (
- set str=
- set var=
- for %%i in (%%a) do (
- if defined var (
- if not defined str (
- set str=%%i
- ) else (
- set str=!str! !var!
- )
- )
- set var=%%i
- )
- echo,!str:* =!
- ))>new_hex.txt
- pause
复制代码
|