8.51a: bug or limitation in Multi-rename tool
Moderators: Hacker, petermad, Stefan2, white
8.51a: bug or limitation in Multi-rename tool
Unfortunately my English is bad, in a few words:
directory with 30299 files, I press Show all files in current dir and all subdirs > Select all > Rename multiple files > rename mask - replace [N] to [C]: I see all files.
Select option Edit names... (use AkelPad) > and I see only 22057 lines! Or 25068 (second time). Аfter the change and save the file I see error File contains wrong number of lines: 25068, should be 30229!
It's bug or limitation?
directory with 30299 files, I press Show all files in current dir and all subdirs > Select all > Rename multiple files > rename mask - replace [N] to [C]: I see all files.
Select option Edit names... (use AkelPad) > and I see only 22057 lines! Or 25068 (second time). Аfter the change and save the file I see error File contains wrong number of lines: 25068, should be 30229!
It's bug or limitation?
Are you sure it's not an issue with your editor? Did you try another editor (Notepad if necessary)?
I just tried to rename 39535 files (in branch view) with the MRT and opened the file list in ConTEXT (and in Notepad on a second run) - no problem at all.
Regards
Dalai
I just tried to rename 39535 files (in branch view) with the MRT and opened the file list in ConTEXT (and in Notepad on a second run) - no problem at all.
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
- sqa_wizard
- Power Member
- Posts: 3881
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
You made clear that the file list is not complete after saving the temporary MRT file. So the question is: Are the file names loaded correctly into the editor? Did you try other files? Maybe there are some characters in your file names that your editor can't handle (shouldn't be the case these days). Or there is some antivirus software interfering in the process - Windows Defender (MS Security Essentials) again?
Regards
Dalai
PS: Yes, ConTEXT is almost ancient and not maintained anymore (and its Unicode capabilities are very limited) but it was the fastest comfortable editor I could find years ago.
Regards
Dalai
PS: Yes, ConTEXT is almost ancient and not maintained anymore (and its Unicode capabilities are very limited) but it was the fastest comfortable editor I could find years ago.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Yes.Dalai wrote:You made clear that the file list is not complete after saving the temporary MRT file.
Yes, but list file %temp%\[A-Z0-9]{7}.txt does not contain all the names.Dalai wrote:So the question is: Are the file names loaded correctly into the editor?
Yes, sometimes all files, sometimes not all files.Dalai wrote:Did you try other files?
No, latin alphabet+arabic numerals with hyphens and spaces in path/name not may be a problem.Dalai wrote:Maybe there are some characters in your file names that your editor can't handle.
Comodo 5.12.256249.2599, firewall+HIPS without sandbox and TC (and %COMMANDER_PATH%\*.exe) have most loyal rules. I also tested without HIPS.Dalai wrote:Or there is some antivirus software interfering in the process
PS: AkelPad the fastest and most customizable editor IMHO.
I just made a test on Win7 x64 and TC 8.51a (32 and 64 bit) using %SystemRoot%\WinSxS folder (branch view) and all 40316 files are saved into the temporary file and ConTEXT has no problem loading it. So it's not a TC bug but something interfering in the process of saving the temporary file on your system. You just need to find out what is causing this .Skif_off wrote:Yes, but list file %temp%\[A-Z0-9]{7}.txt does not contain all the names.Dalai wrote:So the question is: Are the file names loaded correctly into the editor?
Try disabling your antivirus software completely. Also try with a clean wincmd.ini:
Code: Select all
totalcmd.exe /i="%temp%\fresh.ini"
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
I just try a clean wincmd.ini and... everything worked correctly! 94 keys in [Configuration]
Big thanks
Added:
With old config works correctly ) I checked with 137488 files, I don't understand what's the matter:
I used sleep mode a few days and restarted computer in the morning.
to moderator:
please move theme, I think it's just an unfortunate coincidence, because I can not reproduce the problem.
Big thanks
Added:
With old config works correctly ) I checked with 137488 files, I don't understand what's the matter:
I used sleep mode a few days and restarted computer in the morning.
to moderator:
please move theme, I think it's just an unfortunate coincidence, because I can not reproduce the problem.
Last edited by Skif_off on 2014-09-21, 10:41 UTC, edited 2 times in total.
Mmh, interesting. To ease the process of finding the cause: copy half the keys of your wincmd.ini to the fresh one and try again. If it works, copy the other half, too. If it doesn't work, halve the second half, and keep doing that until you find the relevant key.
It may not be a setting in [Configuration] but in another section, or even a plugin.
Regards
Dalai
It may not be a setting in [Configuration] but in another section, or even a plugin.
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
On my computer the problem is easily reproduced with large number of files. Moreover, it's not only that not all files are present in the list, it's quite a critical mess-up. For instance, I tested the problem on a large directory in Ctrl+B mode, so the list contained 36 files named
When I opened the MRT and called external editing, the resulting temporary TXT file contained only 29 of those files (thus 7 missing), plus one line in their place, with the following text:
I tested also with clean wincmd.ini, the problem is reproduced likewise. TC 8.51a x64, Win7 SP1.
P.S. It's better to not only compare the number of lines, but to copy names of selected files, paste into a text editor and then compare the resulting file with the TXT generated by the MRT. In my case it produced many of the similar problems with names mess-up.
P.P.S. I also noticed that descript.ion/files.bbs files are excluded by MRT automatically (depending on the option selected in TC), so make sure you deselect them before MRTing (or just keep in mind that they are to be accounted for).
Code: Select all
050513 Totalcm2.rar
Code: Select all
050513 Tot050513 Totalcm2.rar
P.S. It's better to not only compare the number of lines, but to copy names of selected files, paste into a text editor and then compare the resulting file with the TXT generated by the MRT. In my case it produced many of the similar problems with names mess-up.
P.P.S. I also noticed that descript.ion/files.bbs files are excluded by MRT automatically (depending on the option selected in TC), so make sure you deselect them before MRTing (or just keep in mind that they are to be accounted for).
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
Using TC 11.03 / Win10 x64
Using TC 11.03 / Win10 x64
Additional information: it might be possible that the problem is only reproduced when the temporary txt file is created in UTF-16 format (that is, when at least one name contains Unicode characters, or if RenameEditUnicode=1).
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
Using TC 11.03 / Win10 x64
Using TC 11.03 / Win10 x64
- ghisler(Author)
- Site Admin
- Posts: 49232
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Thanks for the hint! I will check it. Btw, there is no danger to misname the files - the MRT will not accept the changed text file if the line count doesn't match.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com