reducing waiting time on locked files

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
solid
Power Member
Power Member
Posts: 747
Joined: 2004-08-09, 11:20 UTC

reducing waiting time on locked files

Post by *solid »

Hello.
When i try to delete or move or something on a locked file, TC hangs for a while and after some time display "Skip, retry....." box.

Is there a way to reduce this waiting time, i.e. if the operation cannot be performed, the box to show up after a second or two.

I guess that this can be windows, not TC issue, but anyway some solution is welcome.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

As you guessed in your post: It is Windows related and no, sorry, it can't be helped. As workaround you may use a second instance of TC.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
majkinetor
Senior Member
Senior Member
Posts: 369
Joined: 2005-11-20, 10:36 UTC
Location: Belgrade, Serbia
Contact:

Post by *majkinetor »

Remember that little utility Unlocker ?

Well, it should be implemented in TC.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

But that would not decrease the time until Winows recognizes that a file is locked and reports it to TC, wouldn't it?

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

German thread:
http://www.ghisler.ch/board/viewtopic.php?t=4451

ghisler said that he tries to delete first via recycle bin and if this fails he tries to delete directly, this means that the waiting time doubles:
In Explorer it is five seconds, in TC it is 10 seconds.

He has shown no interest to fix that, resp. he has told something about that some drives don't work with recycle bin and that's why needs to do it both way.

It still sucks, I agree.

Workaround is to use Explorer deletion method which is way faster anyway but also very dangerous if you are working with junctions and it doesn't support descript.ion files of course.

Icfu
This account is for sale
User avatar
majkinetor
Senior Member
Senior Member
Posts: 369
Joined: 2005-11-20, 10:36 UTC
Location: Belgrade, Serbia
Contact:

Post by *majkinetor »

@ Sheepdog

It certanly can be fixed, like anything else in the world.
On my machine unlocker can instantly say if file is locked or not. Also other utilities, like console tool handle by SysInternals can show you locked file in a realtime. Procedure like this (pseudocode)

if FileLocked(file) then Unlock(file)
delete(file)

can be implemented... I can do this in batch faster then TC with handle.exe. Something like

Code: Select all

   set FNAME=%1
   handle "%FNAME%"| find "%FNAME%"
   if ERRORLEVEL 0 handle -close %FNAME%
   del %FNAME%
will do the trick faster then TC

So.. Ghisler just think it is not so big problem. I found this pattern in his behavior.
User avatar
solid
Power Member
Power Member
Posts: 747
Joined: 2004-08-09, 11:20 UTC

Post by *solid »

So there is not any hidden windows registry setting that can allow this time to be decreased?
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Have you read my posting? Anything unclear?

Icfu
This account is for sale
Post Reply