Renaming files mistake, now missing the dot before filetype, how to restore?
Moderators: white, Hacker, petermad, Stefan2
Renaming files mistake, now missing the dot before filetype, how to restore?
I renamed a lot of files last night to get rid of "." in filenames. Lets say I wanted "my.hound.avi" to be renamed to "my dog.avi". After I did this, all files in root, on all disks, now misses the "." before the filetype. File is now named "my dog avi" and not "my dog.avi". An easy way to fix this?
(This is all sort of filetypes. avi, mkv, iso, img, jpg and so on).
(This is all sort of filetypes. avi, mkv, iso, img, jpg and so on).
Re: Error renaming files, missing . before filetype
When ALL extensions having 3 length:
MultiRename with FileName [N1--5] and Ext [N-3-1]
MultiRename with FileName [N1--5] and Ext [N-3-1]
Windows 10 Pro 64bit 22H2 19045.4170 | Total Commander (x64) 11.03 #44961
Re: Error renaming files, missing . before filetype
I must admit I don't have the knowledge to understand this...
Re: Error renaming files, missing . before filetype
Use the Search & Replace part in MRT
Importand Remove the [e] selection
Search for: .
Replace with: <clear> or whatever you like
Importand Remove the [e] selection
Search for: .
Replace with: <clear> or whatever you like
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1375a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
TC 11.03 x64 / x86
Everything 1.5.0.1375a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
Re: Error renaming files, missing . before filetype
2Horst.Epp
It's too late for your advice, all dots are already removed…
It's too late for your advice, all dots are already removed…
Andrzej P. Wozniak
Polish subforum moderator
Polish subforum moderator
Re: Error renaming files, missing . before filetype
If he did it without any backup yes.
I don't understand why he didn't see the preview of the rename,
it clearly shows when the extensions are removed and all other sort of mistakes.
Also there is an Undo button which most of the time helps.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1375a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
TC 11.03 x64 / x86
Everything 1.5.0.1375a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
Re: Error renaming files, missing . before filetype
2nordic45
in MRT:
Files that had spaces or dots in the extension will need manual correction.
Before executing you can check the results in the preview window.
Edit: One restriction: "my dog.avi test" would get an additional dot: "my dog.avi.test".
Should be no problem for you, as you removed all dots. But maybe some RegEx expert has an explanation or better solution?
in MRT:
- activate checkbox [X] E
- activate checkbox [X] RegEx
- search for: (.*)( {1}|\.{1})(.*)$
- replace with: $1.$3
Files that had spaces or dots in the extension will need manual correction.
Before executing you can check the results in the preview window.
Edit: One restriction: "my dog.avi test" would get an additional dot: "my dog.avi.test".
Should be no problem for you, as you removed all dots. But maybe some RegEx expert has an explanation or better solution?
Last edited by StatusQuo on 2020-02-27, 19:20 UTC, edited 3 times in total.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
-- TC starter menu: Fast yet descriptive command access!
Re: Error renaming files, missing . before filetype
Yes, that would be the easiest solution - if this was was all done by the last execution in MRT.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
-- TC starter menu: Fast yet descriptive command access!
Re: Error renaming files, missing . before filetype
I have no managed to rename most of the files by searching for " " (space) and replacing it with ".". So now most of my files is named "my.dog.today.avi"
But, I have some 500 files called numbers only. Is there a possibility to get the original filename back?
But, I have some 500 files called numbers only. Is there a possibility to get the original filename back?