Need to rename some files by list using syntax “Old-name” to “New-name” isn’t working.
for /F "tokens=1,2" %%a in (filenames.txt) do ren "%%a" "%%b"
[List itself](https://i.sstatic.net/WvdfO4wX.png)
List itself looks like this and is tab delimited. Already tried to add and remove extensions, replace tabs to spaces in txt - nothing works
All files with names from left column renamed to names from right column
New contributor
Богдан Гонтарев is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
You need to add delims= to your for loop.
Here’s the corrected command:
for /F "tokens=1,2 delims= " %%a in (filenames.txt) do ren "%%a" "%%b"