TCMADMIN is unable to remove folder where it was started

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

TCMADMIN is unable to remove folder where it was started

Post by *MVV »

Actually it is not a bug but...

I removed some files from a directory via TCMADMIN, then I went to upper folder and tried to rename folder itself, w/o luck. When I searched for open handles for that directory, I found that TCMADMIN has one.

TC should start TCMADMIN using TC directory as working directory and not current TC working directory.
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Strange.
Here process explorer says the working directory of TCMADMIN is C:\.
And no problem to rename or delete a subdirectory of "C:\Program files\" after deleting the contained files.
Vista x86, TC 7.56a.

Am I missing some steps to reproduce the problem?

Regards
Holger
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Hm-m, you're right, TCMADMIN starts from right folder (C:\Windows in my case). It seems that here some another problem that have caused locking handle of that folder (I've deleted files from it).

Win7x64.

Here's how I got this problem:
1. entered a folder (something like E:\Program Files\Tools\TrafficCompressor\0)
2. removed some files from it via TCMADMIN
3. went one level up and tried to rename 0 to _xp and got error
Then I've started ProcExp and found that directory handle is owned by TCMADMIN.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Maybe some background program (e.g. virus scanner) saw activity of tcmadmin in that directory and set it to current directory? Virus scanner often run in the process of the scanned app (e.g. via dll injection or a driver).
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

It was under XP SP3 w/o any virus scanners. I don't sure it was current directory (not checked), but I sure that it was owned a handle.
Post Reply