Range command dialog with blank maximum size erases everything

If I do "erase /= *.*" and enter 1000 for the minimum size in the Ranges dialog, the command line is "erase /[s1000,0] *.*". This deletes everything that is at most 1000 bytes. I would think the command line should be "erase /[s1000] *.*".

TCC 22.00.40 x64 Windows 10 [Version 10.0.16299].


Staff member
May 14, 2008
The problem is entering only one argument. TCC could logically interpret that three ways:

1) Delete all files from 0 - 1000 bytes
2) Delete all files >= 1000 bytes
3) Delete all files exactly == 1000 bytes

I don't think that any one of those is obviously more sensible than the others, which is why I don't plan to change the existing behavior. (Which at least has the weight of history and all the existing batch files & aliases.)
May 20, 2008
Syracuse, NY, USA
At least back to 4NTv8, the help has said (and still says):
The second parameter of a size range is optional. If you use a single parameter, you will select all files of the specified size or larger.

That doesn't leave much room for interpretation. And that's how it works.

I think the OP was only suggesting that you change the behavior of the "/=" dialog (which provides a second parameter even if it's not wanted) and not that you change the way size ranges work.
Vince is correct. The second argument in a size range is optional and is the documented way to delete all files equal or greater than a certain size. The Help gives the example of "/[s1M] 2**20 bytes or larger". The problem is you can't enter this using the "/=" dialog. If you leave the second value blank in the dialog, it should not include the second value in the command line.
Similar threads
Thread starter Title Forum Replies Date
Joe Caverly How to? Date Range in command line for 7zip /= Support 1
C See if a file name matches extended range. Support 15
C 7zip with date range .vs. filelist created with dir and daterange Support 0
A How to? Create a date range based upon creation date Support 2
C Problem with /R description-range Support 5
S Date range question Support 4
Roedy date range documentation error Support 2
Dmitry L. Kobyakov How to? How to remove the record of the old version of the Take Command? Support 5
D Can alias pass parameters to for command? Support 3
samintz How to? Search for %(command) in Help? Support 1
T VIEW only works from command line Support 14
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
T Take Command 28: Lua reports version 5.4.0 (5.4.3 expected) Support 0
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
J Take command does not start on Windows 10 Support 3
vefatica `Back quotes` - command line vs. batch file Support 5
Jay Sage WAD Failure of Alias Command with /Z Option Support 14
Phileosophos Is there any way to open the Take Command options dialog from the command line? Support 8
Phileosophos Command-line Editing Shortkeys That Fail Support 6
fpefpe How to? free (internal) command Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
T How to? retain command history across reboot? Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
Jay Sage Bug With Flow Control and/or Command Grouping Support 2
GermanDirk How to? EVENTLOG Command with simple User Rights not functional Support 4
Jay Sage Take Command Is Too Fast! Support 4
Jay Sage Comparison of IF with Command Group and IFF Support 6
D Open Windows 10 Photos app from command line Support 11
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
U Can not get/start Take Command gui Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
S Increasing Font Point Size in Command Tabs Support 2
mfarah Fixed The DATE command produces the wrong error message. Support 1
vefatica Command name mix-up Support 3
FreezerBurnt "Missing SETLOCAL" when initializing Visual Studio Command Prompt. Support 9
E How to? Closing desktop created by DESKTOP command Support 10
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
K Take Command fox XP? Support 7
Joe Caverly Documentation Replace internal command with LIBRARY command Support 0
fpefpe How to? command echo in title line/bar Support 2
U Command help on file names Support 5
vefatica Command line DO with no closing parenthesis? Support 9
vefatica Command history search is off Support 7
H How to? How can I say "if the command separator is not ~ then setdos /C~" Support 8
N Command execution slows down in TCC Prompt after a while Support 6
R Long commands retrieved from command history have blank line when wrapped Support 20
jpeni Take Command Language Examples Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 26.02.41 Uploaded Support 0

Similar threads