本帖最后由 qixiaobin0715 于 2022-9-20 11:16 编辑
回复 7# yyz219 - @echo off
- setlocal enabledelayedexpansion
- for %%x in (.txt .ini .bat .vbs) do set %%x=true
- (for /f "delims=" %%i in (1.csv) do (
- for %%j in (%%i) do (
- set str=%%j
- )
- for /f "delims=-" %%k in (!str!) do (
- if defined %%~xk echo,%%k
- )
- ))>1.txt
- pause
复制代码 看看显示是否正确 |