There is a group of files in the same directory with the names
12345.jpeg asdfafsa.jpeg ... We need to bring them to the value
1.jpeg 2.jpeg и так далее. Total Commander dies with so many files (about 10 million).
OS Win7 x64
There is a group of files in the same directory with the names
12345.jpeg asdfafsa.jpeg ... We need to bring them to the value
1.jpeg 2.jpeg и так далее. Total Commander dies with so many files (about 10 million).
OS Win7 x64
Via bat file
@echo off set all=0 set dir=D:\work\1\ set dim=xls set new=file_change set mask=filex for %%x in ("%dir%*.*") do (set /A all+=1) for /l %%y in (1,1,%all%) do (if exist "%dir%%mask%*%%y*.%dim%" (rename "%dir%%mask%*%%y*.%dim%" "%new%%%y.%dim%") else (echo files are not found)) pause Then try this (place the file in the folder with the files):
@echo off set j=0 for %%i in (*.jpeg) do ( set /a j+=1 call :renamefile %%i %j ) goto :end :renamefile ren %1 %j%.jpeg :end PS only problem with Russian names
Source: https://ru.stackoverflow.com/questions/574935/
All Articles