其实替换字符的贴子有n多,楼主为什么不先搜索下?- @echo off&setlocal enabledelayedexpansion
- (for /f "delims=" %%a in (a.txt) do (
- set "str=%%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 set "str=!str:[%%a]=!"
- echo !str!
- ))>tem
- del /q a.txt&ren tem a.txt
- start a.txt
复制代码
|