首页  编辑  

Windows批处理中按行和列处理文本文件或CSV文件

Tags: /计算机文档/脚本,批处理/   Date Created:
如何在批处理中,读取csv或者文本文件,并逐行逐列处理数据?
How to read csv/text file in batch and process it row by row and column by column?

for /f "usebackq tokens=1,2,3 delims= " %%a in (textfile.txt) do (
    echo %%a, %%b, %%c