Tol!k

|
Posted: Tue Nov 09, 2010 19:57 Post subject: |
|
|
scar4ace
Изменения
Code: | :d
set /a cnt=0
for /f "delims=" %%f in ('dir /b/a-d/on "%~1" ^|^
findstr /vi /r /be /c:"[0-9]\.[^^\.]*" /c:"[1-9][0-9]\.[^^\.]*"') do call :f "%~1\%%f"
goto :eof
:f
set /a cnt+=1
if "%cnt%"=="100" (title STOP &echo Досчитали до 100. &pause >nul &exit)
set "name=%cnt%"
ren %1 "%name%%~x1" 2>nul &&title %name% "%~dp1" ||call :f %1
goto :eof |
|
|