3
rated 0 times
[
3]
[
0]
/ answers: 1 / hits: 773
/ 3 Years ago, tue, november 30, 2021, 12:22:32
I have a thousand folders containing two files: one of them with a random name (mp4 extension) and the other with a name (srt extension).
I intend to replace the random generated file name by the other file name, keeping extension (mp4, mkv or avi) contained on the same folder. By the way the name of the files use to include () and other foreign characters (ó, ü, etc).
In this situation the script should, in my opinion:
- Go into the folder
- Get the name with .srt extension
- Rename the file with mp4 extension with the new name (keeping whatever the extension)
- Get out of the folder
- Recursive travel the folders as it may contain other sub-folders
The 5th step may be overridden, though.
I'd appreciate a hand. Can anyone help?
More From » rename