View Single Post
Old 05-02-2014, 11:32 AM  
bigstar
FlashFXP Developer
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

I am thinking about adding additional switches to the /select command so that one could select based on size and age what do you think?

Right now I am experimenting with this idea and it seems to work quite well, though I am unsure if it will be added at this stage.

The switches would be something like this
-<value> for the minimum value
+<value> for the maximum range

Select based on an size range
Code:
:size-<min>+<max>
It would support the following suffixes b=byte, m=megabyte, g=gigabyte

Code:
:size-10M
meaning any file with a size of 10MB or less

Code:
:size+5M-10M
meaning any file with a size of at least 5MB or more but equal or less than 10MB

Select based on an age range
Code:
 :age-<min>+<max>
It would support the following suffixes s=second, m=minute, h=hour, d=day, y=year

Code:
 :age-1d
meaning any file with a modified date equal or less than 1 day from now.

Code:
 :age+12h
meaning any file with a modified date equal or more than 12 hours from now.

Code:
 /select -f :size-10M
select all files with a size 10MB or less
bigstar is offline