There's no way, renaming is sensitive to efficiency, especially when batch renaming more than 1000 files, saving a little is a little -_-||
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
Originally posted by obsolete at 2008-7-30 22:51:
No way, renaming is sensitive to efficiency, especially when batch renaming more than 1000 files, every bit saved counts -_-||
@echo off
setlocal enabledelayedexpansion
set template=?a??b???c????d?????e??????f???????g????????h?????????i??????????j???????????k????????????l?????????????m??????????????n???????????????o????????????????p?????????????????q??????????????????r???????????????????s????????????????????t?????????????????????u??????????????????????
set template=!template:?=:?!
set template=!template:?:=/!
set template=!template::=!
for /l %%a in (1,1,1001) do (
set file=%template%
set temp=%%a:::::::::%%a
for %%b in (!temp:~10!) do set file=!file:?=%%b!
for /l %%i in (1,1,9) do set file=!file:/:=!
set file=!file:/=0!
set file=!file::=!
echo !file!
echo.
)
pause
Originally posted by 523066680 at 2008-7-31 22:16:
Ah~ Ali duck~~
only you ~ It shouldn't be like this, really. If the time we spend writing code exceeds the time we spend using the mouse, and there are always bugs, it will be a very thankless task...