Tcmadmin.exe keeps folder open
Moderators: Hacker, petermad, Stefan2, white
Tcmadmin.exe keeps folder open
Tested with Windows XP:
Test 1: Try accessing "C:\Test" folder of another user. After asking for user name and password, TC launches tcmadmin.exe. After this, you are not able to delete "C:\Test" folder.
Test 2: Try accessing "C:\Test\File.txt" file of another user. After asking for user name and password, TC launches tcmadmin.exe. After this, you are not able to delete "C:\Test" folder.
TC keeps tcmadmin.exe running even after accessing the password-protected resource. This is probably by design and should stay as it is now. But tcmadmin.exe probably gets "C:\Test" folder as its current working directory.
Solution: always set tcmadmin's working directory to the directory containing tcmadmin.exe (for example "C:\Program Files\Total Commander").
Regards
Test 1: Try accessing "C:\Test" folder of another user. After asking for user name and password, TC launches tcmadmin.exe. After this, you are not able to delete "C:\Test" folder.
Test 2: Try accessing "C:\Test\File.txt" file of another user. After asking for user name and password, TC launches tcmadmin.exe. After this, you are not able to delete "C:\Test" folder.
TC keeps tcmadmin.exe running even after accessing the password-protected resource. This is probably by design and should stay as it is now. But tcmadmin.exe probably gets "C:\Test" folder as its current working directory.
Solution: always set tcmadmin's working directory to the directory containing tcmadmin.exe (for example "C:\Program Files\Total Commander").
Regards
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I don't think that it keeps the directory open, I just guess that it's the current directory in tcmadmin.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I have changed this now in TC 8.52 beta 1, please try it!
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Note that this only affects Windows XP! On newer versions, tcmadmin.exe is launched via elevation (run as admin) and not "Run as different user". Run as admin always starts with the system32 directory as the current directory.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Ah, that's only for Windows XP, it makes sense. There is a note in HISTORY.TXT regarding OS after Windows XP too so I've checked in my Windows 7 only.
Test in a VM with Windows XP SP3:
TC 8.51a on start TCMADMIN in C:\WINDOWS\Temp\90\: TCMADMIN is started in C:\WINDOWS\Temp\90\.
TC 8.52b1 on start TCMADMIN in C:\WINDOWS\Temp\90\: TCMADMIN is started in C:\TOTALCMD.
Fix is confirmed.
Test in a VM with Windows XP SP3:
TC 8.51a on start TCMADMIN in C:\WINDOWS\Temp\90\: TCMADMIN is started in C:\WINDOWS\Temp\90\.
TC 8.52b1 on start TCMADMIN in C:\WINDOWS\Temp\90\: TCMADMIN is started in C:\TOTALCMD.
Fix is confirmed.
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact: