How to show the original size of a ".lnk" file?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
nikov
Posts: 122
Joined: Fri Dec 24, 2021 10:31 am

How to show the original size of a ".lnk" file?

Post by nikov »

Hi,
Is there a way or at least a column formula to show the original size of a ".lnk" file? As "Link target" property shows the original path, then what is the column formula to show the original size using this information? I tried a lot...

Thanks.
void
Developer
Posts: 15479
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to show the original size of a ".lnk" file?

Post by void »

*.lnk addcolumn:a a-label:="Shortcut Target Size" a:=getproperty($shortcut-target:,"size")

getproperty()
nikov
Posts: 122
Joined: Fri Dec 24, 2021 10:31 am

Re: How to show the original size of a ".lnk" file?

Post by nikov »

void wrote: Fri Dec 01, 2023 9:46 am *.lnk addcolumn:a a-label:="Shortcut Target Size" a:=getproperty($shortcut-target:,"size")

getproperty()

So much thanks. It worked like a charm.

Also, is there a column formula to specify newly added column's position and width. i.e. "a-pos:" and "a-width:"? Asking because, the column is always added to the last, so it is a bit slower to scroll to or drag from the last just to see the result.

Thanks.

p.s.: Update: It has a caveat. See below reply.
Last edited by nikov on Sat Jan 20, 2024 11:47 am, edited 1 time in total.
void
Developer
Posts: 15479
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to show the original size of a ".lnk" file?

Post by void »

Please include the following in your search:

addcolumn:<property>:<position>

where <property> is the property name and <position> is the zero-based position.



For example:
addcolumn:a:0
addcolumn:a:4

add-column:



I will consider an option to set the column width.
nikov
Posts: 122
Joined: Fri Dec 24, 2021 10:31 am

Re: How to show the original size of a ".lnk" file?

Post by nikov »

void wrote: Fri Dec 01, 2023 9:04 pm

Column position worked. Thank you for all the helps.
Thy Grand Voidinesss
Posts: 623
Joined: Wed Jun 01, 2022 5:01 pm

Re: How to show the original size of a ".lnk" file?

Post by Thy Grand Voidinesss »

So... if I want to always see the real size of LNKed items [and potentially of other unusual / linked] files then I should replace my Column of Size with Target Size?
Last edited by Thy Grand Voidinesss on Mon Jan 08, 2024 7:11 am, edited 1 time in total.
void
Developer
Posts: 15479
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to show the original size of a ".lnk" file?

Post by void »

Everything currently does not have a method to always show the Target Size column.

The above is for a once-off search to list the target size.
Thy Grand Voidinesss
Posts: 623
Joined: Wed Jun 01, 2022 5:01 pm

Re: How to show the original size of a ".lnk" file?

Post by Thy Grand Voidinesss »

I have listed some suggestions for that Column: viewtopic.php?t=14434
nikov
Posts: 122
Joined: Fri Dec 24, 2021 10:31 am

Re: How to show the original size of a ".lnk" file?

Post by nikov »

Update for whoever reading this later:
Note that, this solution requires that, the demanded property must be indexed otherwise it fails.
At least before 20 January 2024.
See the post about this issue.
viewtopic.php?t=14489
void
Developer
Posts: 15479
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to show the original size of a ".lnk" file?

Post by void »

Everything 1.5.0.1367a now gathers properties on demand with get-property()
(properties don't need to be indexed)

Assigning columns is now instant as values are only gathered when required.
Post Reply