ZTree.com  | ZEN  | About...  

 Index   Back

[Bug] Alt+I not keeping track of (stupid/dangerous) renaming   [Bug]

By: Slobodan Vujnovic   Homepage   France  
Date: Mar 31,2022 at 19:54

I hesitate to call this a bug...
I have always installed ZTree by extracting (Alt+F5) the latest
ZIP on top of C:\ZTW. All files get extracted, except, of course
the active ZTW64.EXE, so I extract that one as, say, ZTW64_202.EXE.

I have just restored v2.4.202 over version v2.4.199 in this way.
I've known about this quirk/bug for many years, so here it is.

Alt+I for ZTW64.EXE v2.4.199 shows
Version: 2.4.199 [2.4.199.0]
Alt+I for ZTW64_202.EXE v2.4.202 shows
Version: 2.4.202 [2.4.202.0]

As expected. Then, to prepare for my next restart of ZTree sessions
(which is usually a reboot, maybe weeks away), I rename the active
ZTW64.EXE to ZTW64_199.EXE
and the new
ZTW64_202.EXE to ZTW64.EXE
No complaints for either rename!

The version in memory is still .199, and Alt+I on ZTW64_199.EXE
confirms that, but Alt+I on the new ZTW64.EXE (which is .202)
is also shown as .199!

If I rename ZTW64.EXE to ZTW64_foo.EXE, Alt+I will correctly show .202
for that file. I can rename it to notepad.exe and I'd see .202 again,
but renaming to ZTW64.EXE reports the currnet, active, version.

I'm concluding that Alt+I first looks at the file name in memory
and gets the info from there; it does not get the info from the
file on disk, it trusts the file name string, which one can change easily.

If you are renaming executables behind ZTree's back, and not restarting,
you may see similar side-effects.

547 views      
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 79 users online (0 registered, 79 guests)
Index | Admin contact |   Forum Time: Mar 29, 2024 - 11:02 am UTC  |  Hits:62,402,706  (17,492 Today )
RSS Feed