本帖最后由 xxpinqz 于 2015-3-11 12:46 编辑
- @echo off
- for /f "delims=" %%i in ('dir /b *.$*') do (
- (for /f "delims=" %%a in (%%i) do (
- setlocal enabledelayedexpansion
- for %%b in (%%a) do if "%%~nb"=="0" (set "pos=!pos!%%b "&set "neg=!neg! 0 ")else set "neg=!neg!%%b "&&set "pos=!pos! 0 "
- echo,!neg!>>"%%~niNeg%%~xi"
- echo,!pos!
- endlocal
- ))>"%%~niPos%%~xi"
- )
复制代码
|