
批處理過濾字符串中的“=”號(hào)誰有更好的辦法我的是這樣:
nclick="copycode($('code0'));">復(fù)制代碼
- @echo off&setlocal enabledelayedexpansion
- del b.txt 2>nul
- for /f delims= %%i in (a.txt) do (
- set str=%%i
- for /f tokens=1,2,3,4,5,6,7,8 delims== %%a in (!str!) do (
- echo %%a%%b%%c%%d%%e%%f%%g%%h>>b.txt
- )
- )
- type b.txt
- pause

