WAD /= size ranges not set correctly

May 20, 2009
293
5
57
ITALY
I want to see all files that are at least 10 bytes long.
I type dir /=.
It appears the box where I can specify criteria.
I click on the Ranges button.
If I type 10 in the Minimum field and leave empty the Maximum field, it suggests "/[s10,0]".
This is a bug, since it means the opposite, files that are at most 10 bytes long.
Instead, it should suggest "/[s10]", I believe.
And, if I leave the Minimum field blank, it does not suggest anything.


Regards

Rodolfo Giovanninetti
 
May 20, 2008
3,515
4
Elkridge, MD, USA
If you enter a minimum you need to enter a maximum as well. The "Result" line is the current state of the range you're building, not a "suggestion", and definitely not the final desired result.
Admittedly, I do not use the dialog boxes to build commands. However, if I did, for ranges I'd like to be able to specify just one of minimum and maximum, leaving the other end unlimited, just as one can do when the range option is manually built. IMHO the dialog default for the as yet unspecified limit ought to be the same it is when that limit is unspecified in an explicit range. However, it is definitely not worth losing even a minute's sleep over.
 

rconn

Administrator
Staff member
May 14, 2008
12,345
150
Admittedly, I do not use the dialog boxes to build commands. However, if I did, for ranges I'd like to be able to specify just one of minimum and maximum, leaving the other end unlimited, just as one can do when the range option is manually built. IMHO the dialog default for the as yet unspecified limit ought to be the same it is when that limit is unspecified in an explicit range.

You do realize that whenever I see something that starts with "I do not use ... however, if I did ...", it goes immediately into the circular file? ;)

In this case, it's irrelevant, because for size ranges you always have to specify the minimum and maximum, whether you do it on the command line or in the command dialog. There are no defaults. (And it's impractical to even try, since different file systems have different maximum sizes, and at the point the command dialog is being executed TCC has no idea what file system will be used.)
 
May 20, 2009
293
5
57
ITALY
...
In this case, it's irrelevant, because for size ranges you always have to specify the minimum and maximum, whether you do it on the command line or in the command dialog. There are no defaults. (And it's impractical to even try, since different file systems have different maximum sizes, and at the point the command dialog is being executed TCC has no idea what file system will be used.)
In the help it says: "Size ranges select files whose size is between the inclusive limits specified. 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. ...". And one of the examples is "/[s1M] 2**20 bytes or larger".
I tried on fat and on ntfs and it seems to work, for example with TakeCommand directory itself:

[C:\a]*dir /[s1000000] /O:s

Volume in drive C is unlabeled Serial number is 4717:4a93
Directory of C:\a\*

12/08/2013 09:37 1.056.440 ipworksssl9.dll
12/08/2013 17:38 1.061.048 ipworks9.dll
06/12/2013 05:30 1.356.896 takecmd.dll
06/12/2013 05:30 2.280.544 v.exe
08/01/2013 03:54 2.315.072 IsLicense50.dll
06/12/2013 05:29 3.627.411 tcmd.chm
06/12/2013 05:30 4.381.280 tcmd.exe
06/12/2013 05:30 4.530.272 ide.exe
22/08/2013 16:01 9.004.648 textpipeengine.dll

So, it seems to me that it work, and so it should do the same also with "/=".
Otherwise, please consider it as an improvement for a future release.

I do not understand what You mean when You say
...
There are no defaults. (And it's impractical to even try, since different file systems have different maximum sizes, and at the point the command dialog is being executed TCC has no idea what file system will be used.)
If I DO NOT specify a maximum, my idea is that the command must consider any file that is at least long as the minimum size, up to ANY value.
So, the test should be something like "if filesize ge minimum".

Thank You and regards

Rodolfo Giovanninetti
 
May 20, 2008
11,400
99
Syracuse, NY, USA
... for size ranges you always have to specify the minimum and maximum, whether you do it on the command line or in the command dialog.

I don't understand. The help shows this example (below) and it works.

Code:
/[s1M] 2**20 bytes or larger
 
Similar threads
Thread starter Title Forum Replies Date
S How to? Command dialogs vs. size/date/etc. exclusion ranges Support 1
vefatica FFIND and size ranges Support 1
R History window wrong size, can't remember size change Support 12
fpefpe How to? batch file size Support 2
vefatica Documentation Documentation of popup location and size Support 4
S Increasing Font Point Size in Command Tabs Support 2
S How to? What's the maximum size of the thread text ? Support 5
ntak About window size notification Support 6
Joe Caverly Windows Size is 80x0 Support 2
D Need to set Take Command font size when switching to high DPI display Support 0
rps @FILESIZE[....,a] allocated size not matching Dir results Support 8
D Range command dialog with blank maximum size erases everything Support 5
R How to? Change TCMD tab font size in window menu Support 3
D Get tab position and size Support 6
Alpengreis The TCMD Display problems and font size ... Support 2
Joe Caverly How to? Determine size of file via download link Support 13
C VIEW PRINT - Documentation corrected - Font size Support 8
L alternate streams size not counted Support 7
C Screens of different size and hidden console Support 8
mikea How to? @select[] window size, redux. Support 3
Joe Caverly Window Size (Columns x Rows) Support 2
N Popup Window size too small Support 5
Mordachai how to control window size? Support 10
Joe Caverly New Tab In TCMD Changes TCC Window Size Support 1
fpefpe How to? Fonts / Size in console window Support 5
C TCC scrollback buffer size Support 11
M How to? Find out the total allocated size of a directory tree... Support 7
C Size of keystack buffer? Support 2
B Downloading Updates - Error: Wrong file size?? Support 3
C CMD window size and post_exec alias ? Support 6
T @ping: response code, data size and documentation incorrect Support 2
vefatica File size = -2? Support 8
fpefpe zip command file size Support 1
G Wrong File Size Support 8
davidebbo History popups doesn't remember its position/size Support 4
S DIR - summary of size of subdirectories??? Support 13
S CLIP file size limit Support 1
S Conditionally MOVE/COPY files on the basis of size Support 1
vefatica Updating v10: error wrong file size Support 2
CWBillow TCC Window size Support 5
Fross Win7 x64 Dialog Size Issue Support 3
Roedy CDD command window size Support 6
K popup menu size Support 2
M Changing font size without mouse wheels... Support 1
S SENDMAIL attachment size limit Support 1
D Subdir level inconsistencies and exclusion ranges Support 10
S WAD PDIR ignores exclusion ranges Support 1
M How to? Effectively "combine" date and time ranges... Support 2
S SELECT - does it support ranges? Support 2
V Set path permanently from within TCC? Support 3

Similar threads