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
files locked during renaming (development problem)
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50512
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com