回复 QIAOXINGXING
已经上传了,数据都是大于999999
乱乱 发表于 2012-10-17 15:44
你的数据是:- J1,1,582697.464,2637467.157,0.0
- J2,1,582698.773,2637463.750,0.0
- J3,1,582700.214,2637460.870,0.0
- J4,1,582704.058,2637460.150,0.0
- J5,1,582711.986,2637457.510,0.0
- J6,1,582718.713,2637453.670,0.0
- J7,1,582719.194,2637449.830,0.0
- J8,1,582718.954,2637444.070,0.0
复制代码 大于999999的应该是第四列吧??
二楼代码不成功,因为数据是小数。批处理不支持小数。- @echo off&SetLocal EnableDelayEdexpansion&cd /d "%~dp0"
- md 提取\
- for %%i in (*.txt) do (
- (for /f "tokens=1-4 delims=," %%a in (%%~si) do (
- for /f "tokens=1-2 delims=." %%i in ("%%d") do (
- if %%i gtr 99999 echo %%i.%%j
- )
- ))>"提取\%%~nxi"
- )
- pause
复制代码 这里是和第四列作比较,如果要和第三列比较,把第五行的%%d改成%%c。 |