
[bug] Switching to other tab closes archive
Moderators: Hacker, petermad, Stefan2, white
[bug] Switching to other tab closes archive
I open an archive (i.e. go into it with Ctrl+PageDown) located in another archive. When I select some other tab in the same pane and then go back to the tab with the archive, I see temp dir there instead of archive content. 

- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
- pdavit
- Power Member
- Posts: 1529
- Joined: 2003-02-05, 21:41 UTC
- Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
- Contact:
Thanks!aguirRe wrote:See here: http://www.ghisler.ch/board/viewtopic.php?t=2286

"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
Christian Ghisler Rules!!!
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
And in the german forum:
http://www.ghisler.ch/board/viewtopic.php?t=3942&highlight=
CG said: "Ich habe mehrere Stunden damit zugebracht, das zuverlässig zum Laufen zu bringen, leider ohne Erfolg. Nun ist es halt so gelöst, dass die Temp-Datei entfernt wird, wenn man zu einem anderen Verzeichnis wechselt, egal wie.
Das Problem ist zudem, dass die Tabs beliebig lange bestehen können, auch nach dem Beenden des Programms, und ich nicht das Temp-Verzeichnis mit geoeffneten Archivdateien pflastern will."
Basicly: "I spent several hours to fix this without success. So I solved it by deleting the temp file as soon one swithes to another dir, no matter how.
The problem is that tabs can stay persistently, even after closing the program, and i dont want to fill the temp dir with files."
http://www.ghisler.ch/board/viewtopic.php?t=3942&highlight=
CG said: "Ich habe mehrere Stunden damit zugebracht, das zuverlässig zum Laufen zu bringen, leider ohne Erfolg. Nun ist es halt so gelöst, dass die Temp-Datei entfernt wird, wenn man zu einem anderen Verzeichnis wechselt, egal wie.
Das Problem ist zudem, dass die Tabs beliebig lange bestehen können, auch nach dem Beenden des Programms, und ich nicht das Temp-Verzeichnis mit geoeffneten Archivdateien pflastern will."
Basicly: "I spent several hours to fix this without success. So I solved it by deleting the temp file as soon one swithes to another dir, no matter how.
The problem is that tabs can stay persistently, even after closing the program, and i dont want to fill the temp dir with files."
I switched to Linux, bye and thanks for all the fish!
I would understand this if I changed dir in current tab, but I just switched to another tab, so archive isn't changed in the tab with archive. Quite inconvenient.
If I'm not wrong Christian tried to solve problem with deleting files in temp dir after closing some external program. But in my case, no need to track termination of any external program. So temp files in temp dir can be deleted after there are no tabs remained with this archive opened. So algorithm is quite easy: before deleting temporarily unpacked archives from temp dir, check if there are tabs with this archive opened. If there are at least one - do not delete.I spent several hours to fix this without success
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary

Code: Select all
del "c:\Documents and Settings\SanskritFritz\Local Settings\Temp\*" /s /f /q
del "c:\WINDOWS\Temp\*" /s /f /q


I switched to Linux, bye and thanks for all the fish!
- pdavit
- Power Member
- Posts: 1529
- Joined: 2003-02-05, 21:41 UTC
- Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
- Contact:
2 SanskritFritz
Thanks!
The funny thing (or stupid) is that it never crossed my mind of using simple DOS commands to do that! When you said "script" my thought went to something complicated. Anyway, thanks again. I guess clever ideas are the simple ones!
Thanks!
The funny thing (or stupid) is that it never crossed my mind of using simple DOS commands to do that! When you said "script" my thought went to something complicated. Anyway, thanks again. I guess clever ideas are the simple ones!

"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
Christian Ghisler Rules!!!
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
I never had a problem with this for years now. IMHO you can run this script anytime because the temp files in use cannot be deleted anyway, they are locked.You better run these command in autoexec.bat, before Windows loads, as Win may create and need some temp files duing start-up. Be carefull!
I switched to Linux, bye and thanks for all the fish!
I've used a similar "script" for a while. I discovered a small drawback though. Some applications after their installation store some files in the temp dir and ask you to restart the computer. When you restart the computer, the application tries to find the files in the temp dir but they are not there because they've been deleted by the "cleanup script".SanskritFritz wrote:Serious? Well some might appreciate it, so here:
Not so clever, please understand, i meant "everything" in the temp folderCode: Select all
del "c:\Documents and Settings\SanskritFritz\Local Settings\Temp\*" /s /f /q del "c:\WINDOWS\Temp\*" /s /f /q
![]()

Code: Select all
del "C:\Documents and Settings\%USERNAME%\Local Settings\Temp\*" /s /f /q
del "c:\WINDOWS\Temp\*" /s /f /q
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.