SELECT DEL (*D.DLL) - output curious

Jun 7, 2008
121
0
Running
TCC 12.11.70 Windows XP [Version 5.1.2600]

Hi just run

SELECT DEL (*D.DLL)

The output I got was

>>
:
Deleting C:\TVPCDev\MDBDev\Bin\BINEXEC3\TSPVODD.dll
1 file deleted
Deleting C:\TVPCDev\MDBDev\Bin\BINEXEC3\TSPVOD2D.dll
1 file deleted
Deleting C:\TVPCDev\MDBDev\Bin\BINEXEC3\TSQHourImportD.dll
1 file deleted 8,777,728 bytes freed
Deleting C:\TVPCDev\MDBDev\Bin\BINEXEC3\TSRCardImport2D.dll
1 file deleted
Deleting C:\TVPCDev\MDBDev\Bin\BINEXEC3\TSRepeatStatusD.dll
1 file deleted
Deleting C:\TVPCDev\MDBDev\Bin\BINEXEC3\TSSNZExportD.dll
1 file deleted
Deleting C:\TVPCDev\MDBDev\Bin\BINEXEC3\TSSNZGenreImportD.dll
1 file deleted
Deleting C:\TVPCDev\MDBDev\Bin\BINEXEC3\TSSNZPMFImportD.dll
1 file deleted
Deleting C:\TVPCDev\MDBDev\Bin\BINEXEC3\TSSNZPRGImportD.dll
1 file deleted
Deleting C:\TVPCDev\MDBDev\Bin\BINEXEC3\TSSNZUPDImportD.dll
1 file deleted
Deleting C:\TVPCDev\MDBDev\Bin\BINEXEC3\TSSortD.dll
1 file deleted
Deleting C:\TVPCDev\MDBDev\Bin\BINEXEC3\TSSponsorImport2D.dll
1 file deleted
Deleting C:\TVPCDev\MDBDev\Bin\BINEXEC3\TSSponsorImport3D.dll
1 file deleted
Deleting C:\TVPCDev\MDBDev\Bin\BINEXEC3\TSSpotImport2D.dll
1 file deleted
Deleting C:\TVPCDev\MDBDev\Bin\BINEXEC3\TSSpotImport3D.dll
1 file deleted
Deleting C:\TVPCDev\MDBDev\Bin\BINEXEC3\TSStaticImportD.dll
1 file deleted
Deleting C:\TVPCDev\MDBDev\Bin\BINEXEC3\TSStoredData2D.dll
1 file deleted
Deleting C:\TVPCDev\MDBDev\Bin\BINEXEC3\TSStoredDataD.dll
1 file deleted
Deleting C:\TVPCDev\MDBDev\Bin\BINEXEC3\TSUniverseImport2D.dll
1 file deleted

[C:\TVPCDev\MDBDev\Bin\BINEXEC3]
>>

What interested me was halfway I saw that "8,777,728 bytes freed"
Why does one file get that message and not the others? Does it mean anything?
Seems most curious.

Thanks

Stephen Howe
 
May 20, 2008
3,515
4
Elkridge, MD, USA
Stephen Howe wrote:
| Running
| TCC 12.11.70 Windows XP [Version 5.1.2600]
|
| Hi just run
|
| SELECT DEL (*D.DLL)
|
| The output I got was
...
|
| What interested me was halfway I saw that "8,777,728 bytes freed"
| Why does one file get that message and not the others? Does it mean
| anything?
| Seems most curious.

If a single copy of a DLL has multiple directory entries (hard links), the
"freed" message would be associated with the last of its directory entry's
deletion. If such was not the case, I am also surprized!
--
Steve
 
May 20, 2008
11,400
99
Syracuse, NY, USA
On Fri, 22 Jul 2011 12:11:06 -0400, Stephen Howe <> wrote:

|What interested me was halfway I saw that "8,777,728 bytes freed"
|Why does one file get that message and not the others? Does it mean anything?
|Seems most curious.

I find that with a simple DEL, you get the "freed" message if the file size is
greater than 736 bytes (and that seems wrong).

Code:
v:\tcmd12help> echos %@repeat[a,736] > rep.txt

v:\tcmd12help> del rep.txt
Deleting V:\tcmd12help\rep.txt
     1 file deleted

v:\tcmd12help> echos %@repeat[a,737] > rep.txt

v:\tcmd12help> del rep.txt
Deleting V:\tcmd12help\rep.txt
     1 file deleted              4,096 bytes freed

This does **not** seem to be the explanation for what you observed (assuming
those DLLs were bigger than 736 bytes).
 
May 20, 2008
11,400
99
Syracuse, NY, USA
On Fri, 22 Jul 2011 13:03:27 -0400, Charles Dye <> wrote:

|---Quote (Originally by vefatica)---
|I find that with a simple DEL, you get the "freed" message if the file size is greater than 736 bytes (and that seems wrong).
|---End Quote---
|I'll bet that that number varies with the length of the filename.... :-)

Yeah, it does. I'm even more intriqued. Does this seem right?
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
Everybody should review the help for DEL:

"DEL displays the amount of disk space recovered, unless the /Q option is
used (see below). It does so by comparing the amount of free disk space
before and after the DEL command is executed. This amount may be incorrect
if you are using a deletion tracking system which stores deleted files in a
hidden directory, or if another program performs a file operation while the
DEL command is executing."

In the case of small files, they are stored in the directory entries, not as
separate files, so you won't see any difference before and after.

And if you're deleting to the recycle bin, you won't see any difference
until you fill it up & start discarding old entries.

Rex Conn
JP Software
 
May 20, 2008
11,400
99
Syracuse, NY, USA
On Fri, 22 Jul 2011 13:26:21 -0400, rconn <> wrote:

|In the case of small files, they are stored in the directory entries, not as
|separate files, so you won't see any difference before and after.

Thanks. That's the part I wasn't aware of.
 
Jun 7, 2008
121
0
If a single copy of a DLL has multiple directory entries (hard links), the
"freed" message would be associated with the last of its directory entry's
deletion. If such was not the case, I am also surprized!
--
Steve

Steve, it was not the case. All of those DLLs were single directory entries.
They vary in size from 15K to 625K

Cheers

Stephen
 
Jun 7, 2008
121
0
Further information on the file in question. I have a copy of it.
I see

20/11/2001 22:42 221,241 TSQHourImportD.dll
221,241 bytes in 1 file and 0 dirs 225,280 bytes allocated

This is an old defunct Debug DLL.
I am amazed that deleting a copy of it in BINEXEC3 caused "8,777,728 bytes freed"
I checked for alternative streams : None attached.
And the granularity of the NTFS is such that small files take up 4K.
If TCC was multithreaded, I could account for this if a separate thread caused output to be intermingled in the wrong order and "8,777,728 bytes freed" should have been at the bottom of all the deletions and was the cumulative total.

A real mystery.

Cheers

Stephen Howe
 
Similar threads
Thread starter Title Forum Replies Date
R @select inside alias gives different (insanely small) window Support 7
Joe Caverly Windows Terminal and @SELECT Support 13
WinLanEm @SELECT problem Support 6
T @select and @selectarray issues Support 2
C How to? Select 100 random pictures from 30,000 Support 8
MikeBaas How to? SELECT: exclude files / display prompt Support 2
rps Documentation "Select" command switch order incorrect Support 4
mikea How to? @select[] window size, redux. Support 3
vefatica IDE double-click select? Support 29
gschizas How to? How can I use select with a folder that already contains parentheses? Support 7
T How to? Select and Delete text Support 6
mikea How to? Understanding @select[] Support 2
vhodro How to? Select text Support 10
WavSlave Fixed Escaping out of SELECT sometimes still executes the command Support 2
B Select and run lines from Command Input panel? Support 1
nikbackm Fixed v15: Issue with @select Support 3
G Fixed v15.00.27: @SELECT Support 10
D ini directives and @select example in Help Support 0
ehab aboudaya How to? Copy to clipboard on select Support 5
Phileosophos SELECT command opens additional tab Support 9
vefatica Positioning @SELECT[] popup? Support 3
WadeHatler Any way to restore the Text Based "Select File" Windows in TCC Support 2
Stefano Piccardi how to @SELECT redirected input? Support 4
Joe Caverly Error when sorting list alphabetically for @select Support 2
S SELECT - does it support ranges? Support 2
nikbackm @select function and TAB characters Support 1
Joe Caverly @select like 4DOS Support 1
D Can you feed a file list to SELECT? Support 1
A @select versio 10.31 Support 1
nikbackm @select window problem Support 12
Joe Caverly MKLINK and Streams and DEL Support 4
S CMDebug 22 issue with del command Support 1
I Puzzling Behavior of TDRV and DEL Support 2
vefatica File system update after DEL? Support 4
vefatica DEL /R on a SUBST'd drive? Support 1
C Del /W999 2gbFile.ext / latest build / Win7 x64 / MSE / Everything Support 5
nickles WAD del unable to delete files ending in "." Support 18
D del /s /q /f asks Are you sure (Y/N)? Support 7
Steve Pitts WAD Strange output from DEL of a non-existent directory Support 7
C DEL, connected Web folder, report Support 1
R /p when used with DEL Support 1
M A possibly stupid question about the "del" command... Support 7
Peter Murschall DEL /Y prompts always ? Support 3
vefatica Files disappear in Explorer when DEL fails Support 6
S WAD DEL /E suppresses fatal ERROR messages Support 2
nickles WAD del behaves inconsistenly# Support 7
David McClelland Why the prompt to del c:\* Support 7
Steve Pitts Are you sure prompt from DEL command Support 5
Steve Pitts Problem with DEL /S+n Support 11
vefatica DEL /Q not fixed Support 7

Similar threads