[TC 11.57rc4a] Shift+F4: typing <[T4 can leave a file locked

Bug reports will be moved here when the described bug has been fixed

Moderators: petermad, Stefan2, Hacker

Post Reply
User avatar
white
Power Member
Power Member
Posts: 6941
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

[TC 11.57rc4a] Shift+F4: typing <[T4 can leave a file locked

Post by *white »

  • Select a zero byte file
  • Press Shift+F4
  • Type <[T4
A file handle is created for the zero byte file and is not closed. You cannot delete or rename the zero byte file. The file handle is only removed by closing TC.

It seems to happen, not only for zero byte files, but for all files with a file size that is smaller than 32 bytes.
It also happens when renaming the file using the Multi-Rename Tool and using the filename mask [T4.

The bug seems to be introduced in Total Commander 10.50 beta 1 when the option was added for the MRT:
HISTORY.TXT wrote:31.12.21 Added: Multi-rename tool: New field [T4] will use EXIF date for all date fields after this placeholder. Will use one of DATETIME_ORIGINAL, DATETIME_DIGITIZED, DATETIME, whichever is found first. No EXIF->skip file (32/64)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 53145
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.57rc4a] Shift+F4: typing <[T4 can leave a file locked

Post by *ghisler(Author) »

Confirmed.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 53145
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.57rc4a] Shift+F4: typing <[T4 can leave a file locked

Post by *ghisler(Author) »

This should be fixed in Total Commander 11.57 RC5, please test it.
20.04.26 Fixed: New text file (Shift+F4): Using placeholder <[T4] on a zero byte file kept the file open, so it couldn't be deleted (32/64)
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 6941
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.57rc4a] Shift+F4: typing <[T4 can leave a file locked

Post by *white »

ghisler(Author) wrote: 2026-04-22, 10:44 UTC This should be fixed in Total Commander 11.57 RC5, please test it.
20.04.26 Fixed: New text file (Shift+F4): Using placeholder <[T4] on a zero byte file kept the file open, so it couldn't be deleted (32/64)
Tested OK using TC 11.57rc5 32-bit and 64-bit.
But changelog only mentions zero byte file while the problem was for any file consisting of 0 to 31 bytes:
white wrote: 2026-04-19, 18:15 UTC It seems to happen, not only for zero byte files, but for all files with a file size that is smaller than 32 bytes.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 53145
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.57rc4a] Shift+F4: typing <[T4 can leave a file locked

Post by *ghisler(Author) »

Thanks for confirming the fix!

Moderator message from: ghisler(Author) » 2026-04-23, 07:20 UTC

Moved to fixed bugs
Author of Total Commander
https://www.ghisler.com
Post Reply