本帖最后由 aloha20200628 于 2024-9-2 19:43 编辑
回复 1# delab-1 - @echo off
- (echo,yearmonth,com_code,partner_code,way_code,province_code,amount1,unit1,amount2,unit2,dollar
- for /f "skip=1 tokens=1,2* delims=," %%a in (test.csv) do (
- set "v2=%%b" &setlocal enabledelayedexpansion
- if "!v2:~7!"=="" (echo,%%a,0%%b,%%c) else echo,%%a,%%b,%%c
- endlocal
- ))>new_test.csv
- pause&exit/b
复制代码
|