files locked during renaming (development problem)

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
apanjocko
Junior Member
Junior Member
Posts: 17
Joined: 2003-04-22, 07:31 UTC

files locked during renaming (development problem)

Post by *apanjocko »

i have stumbled upon a wierd problem now.
background information: when you move/rename/delete etc a file or directory, you can listen for these types of events in windows. handy in many situations!

the problem comes when you rename a file. windows give you information about the new filename for the file. the problem is that during renaming total commander locks the file. explorer does not do this. so opening the file to read the data fails. yes just for a very short while, but why total commander but not windows? i will have to make a huge hack in our project to wait a few milliseconds and then try again.

does anyone know why? how to fix it?

/d
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50505
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Maybe it's the setting of attributes after renaming? TC has an option to set the archive attribute after renaming (or not). Depending on the Windows version, this is done automatically by Windows (e.g. on XP), or TC has to to it by itself.
Author of Total Commander
https://www.ghisler.com
apanjocko
Junior Member
Junior Member
Posts: 17
Joined: 2003-04-22, 07:31 UTC

Post by *apanjocko »

i can now say, with statistical significance, that setting:
SetArchiveBitOnRename=0
in the wincmd.ini does not resolve the problem =/
total commander sure does some other mysterious things when renaming...

thanks,
/d
Post Reply