An oddity that's a little bit scary...

May 24, 2010
855
0
Northlake, Il
As I usually do an unmodified partial log of a TCC session:
Code:
 Directory of  X:\Obsolete Music Files\z*

 7/20/2014  1:30  0  zia10224
  0 bytes in 1 file and 0 dirs
 1,407,083,044,864 bytes free

[X:\Obsolete Music Files]del zia10224
Deleting X:\Obsolete Music Files\zia10224
  1 file deleted  1,182,859,264 bytes freed
Presumably the question is obvious. How can deleting a file whose length is zero free 1,182,859,264 bytes bytes (more than a gigabyte!)?
 
Nov 13, 2008
255
3
www.thedave.me
If I recall correctly, it doesn't actually keep track of the space freed, but rather, it does a comparison against the free space at the start and end of the operation. This leaves plenty of room for oddities.
 
Nov 2, 2009
294
6
Chile
www.farah.cl
Quick question: should the "before and after" behavior be the proper one (... at least for single file deletion)? After all, it's not like the system can't tell exactly how many sectors a certain file occupied.
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
Quick question: should the "before and after" behavior be the proper one (... at least for single file deletion)? After all, it's not like the system can't tell exactly how many sectors a certain file occupied.

TCC used to do that -- and I got hundreds of complaints from people who said that DEL told them they freed memory when they didn't (because Windows was deleting to the recycle bin or similar third-party app). The current solution was deemed the least confusing and apt to generate "bug" reports.
 
May 24, 2010
855
0
Northlake, Il
Thank you guys and I believe you. But it is a little bit strange that something of that magnitude can happen in the time it takes to do a delete of a single zero-length file!
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
Thank you guys and I believe you. But it is a little bit strange that something of that magnitude can happen in the time it takes to do a delete of a single zero-length file!

Not really -- there's usually an enormous amount of activity going on in the background. Text indexing, incremental backups, temp file cleanups, disk optimization, journaling, etc.
 
Similar threads
Thread starter Title Forum Replies Date
samintz WAD DO /s /a:d oddity Support 7
vefatica Registry oddity Support 14
D v23 environment oddity Support 3
gentzel CompletePercents oddity Support 1
MickeyF @filewrite oddity (to me) Support 5
Fross Build 46 Oddity Support 5
M Just a minor oddity... Support 9
M A real oddity but not a real problem... Support 8
Dan Glynhampton Documentation v15 help: Another mailto: link oddity Support 0
M And oddity re the 32-bit TCC on a 64-bit system... Support 4
M WAD An oddity with the "Dir" command... Support 2
D Environment variable oddity Support 12
M An oddity... Support 5
Charles Dye @ERRTEXT oddity Support 6
Charles Dye INPUT prompt oddity Support 5
Peter Murschall A little problem with LEAVE and COMMENT Support 5
MickeyF A little help with @REREPLACE Support 6
M Little bug, big consequences .. Support 6
vefatica ZIP /U a little screwy Support 9
R How to? i need a little help Support 3
M A little bit of strangeness with @Char... Support 3
M A new problem that has actually got me a little panicky... Support 10
L A little startup help from an old CLI guy please. Support 14
Peter Bratton Another little bug? Support 1
A TCMD 11 little bugs Support 4
H I need a little help. Support 4
C Some little observations Support 16
Peter Murschall Single-line Do-CMD is a bit uncooperative. Support 6
Joe Caverly VBEEP on 64-bit Support 3
vefatica SETP usually fails with a 32 bit process Support 4
rconn Dropping 32-bit support in Take Command & TCC? Support 14
dcantor How to? Can 32-bit TCC be run on a system with 64-bit TCMD and TCC installed? Support 6
T 32 and 64 bit simultaneous portable versions Support 2
vefatica Make FFIND a bit more friendly? Support 14
CWBillow Everything.exe - 64-bit? Support 8
S 32-bit Take Command v22 install for thumb drive Support 1
Per TCC/LE 14 64-bit won't start on Windows 10 Insider Preview 17063 (171213) Support 12
Joe Caverly SETP and 32-bit process Support 2
gworley How to? Take Command 20 64 bit vs 32 bit Support 1
mikea Documentation Consider expanding the docs for 'Everything' a bit Support 10
T 64 bit TCCLE appears to crash when opening tcc.exe from within tcc.exe window Support 7
vefatica Can a subroutine return a 64-bit integer? Support 4
M 64-bit plugins? Support 1
rconn News Take Command 16.03.54 32-bit installer Support 0
rconn News Take Command 16.03.54 32-bit installer fix Support 0
MickeyF problem using COM object in VBScript from v16 x64 TCC but not from v15 32-bit TCC Support 4
JohnQSmith Installing TCMD16 on 32 bit XP Support 12
D New 64-bit install goes to Program Files x86 Support 3
F How to install 64-bit after having installed 32-bit on Win7 Support 2
Dan Glynhampton Bad link to 64 bit RC1 download Support 0

Similar threads