T
T
thechemis2017-01-21 17:44:58
Programming
thechemis, 2017-01-21 17:44:58

Script for renaming files, how to write it correctly?

Hello everyone) I have audio albums of a well-known German artist. The songs of each album are in their respective folders with their respective titles. But some files have the same name and cannot be moved to the shared folder. Is it possible to write a script to iterate through all the songs of each album recursively, and rename each song in the form "Album"."Song Name".mp3?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Konstantin Tsvetkov, 2017-01-21
@tsklab

Tag&Rename did not please.

A
aleksey_komyakov, 2017-01-21
@aleksey_komyakov

Do you want checkers or go?)
We read the "root with directories" into an array, then recursively read the files in each directory and rename them according to the principle you need.
One cycle. All given names in the array will be.

A
azarij, 2017-02-14
@azarij

is the issue still relevant?
album01
song01 --> album01 - song01
song02 --> album01 - song02
song03 --> album01 - song03
right?
powershell is fine?
will we only rename mp3 files?
Are there Russian or non-standard characters in the names?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question