本帖最后由 apang 于 2015-3-11 22:25 编辑
- @echo off
- for /f tokens^=1^,3-4delims^=^" %%i in (a.txt) do (
- set "file=%%i%%j"
- setlocal enabledelayedexpansion
- for /f "tokens=4delims=," %%a in ("%%k") do set "fd=%%a"
- set /a fd = 118 + !fd:-=-1-!
- if !fd! GEQ 132 set "fd=0x"
- echo,move "!file!" "!fd:~1!\"
- endlocal
- ) 2>nul
- pause
复制代码
|