@newbies: Quickly copy the file size to the clipboard

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
admin
Site Admin
Posts: 66360
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

@newbies: Quickly copy the file size to the clipboard

Post by admin »

Open the Customize File Associations dialog from the Open With button, and enter this line as a new Portable File Association:

Code: Select all

|"Copy file size in bytes" *>::copytext <cursize>
CustomizeFileAssociations.png
Now you can quickly copy the byte count of the selected (focused) file to the clipboard using the Open With button. I use this function many times every day.

Only available in the professional edition.
To see the attached files, you need to log into the forum.

ogroeger
Posts: 92
Joined: 03 Jul 2007 07:39

Re: @newbies: Quickly copy the file size to the clipboard

Post by ogroeger »

@newbies: If you're getting "Failed to open ::copytext <cursize>" you must enable "Quick scripting" in the configuration (Configuration->Advanced)

admin
Site Admin
Posts: 66360
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: @newbies: Quickly copy the file size to the clipboard

Post by admin »

ogroeger wrote:@newbies: If you're getting "Failed to open ::copytext <cursize>" you must enable "Quick scripting" in the configuration (Configuration->Advanced)
Good point. Actually I wonder whether I should remove this setting! Has anybody ever turned this off??? I don't think so...

nony
Posts: 170
Joined: 16 Sep 2009 19:51

Re: @newbies: Quickly copy the file size to the clipboard

Post by nony »

Wonder why it fails for system files eg pagefile.sys

::echo <cursize> returns zero.

admin
Site Admin
Posts: 66360
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: @newbies: Quickly copy the file size to the clipboard

Post by admin »

nony wrote:Wonder why it fails for system files eg pagefile.sys

::echo <cursize> returns zero.
Confirmed, fixed, thanks!

ogroeger
Posts: 92
Joined: 03 Jul 2007 07:39

Re: @newbies: Quickly copy the file size to the clipboard

Post by ogroeger »

admin wrote:
ogroeger wrote:@newbies: If you're getting "Failed to open ::copytext <cursize>" you must enable "Quick scripting" in the configuration (Configuration->Advanced)
Good point. Actually I wonder whether I should remove this setting! Has anybody ever turned this off??? I don't think so...
Actually i asked myself why i can disable this. Do i have any advantage by disabling, e.g. saving some RAM?

admin
Site Admin
Posts: 66360
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: @newbies: Quickly copy the file size to the clipboard

Post by admin »

ogroeger wrote:
admin wrote:
ogroeger wrote:@newbies: If you're getting "Failed to open ::copytext <cursize>" you must enable "Quick scripting" in the configuration (Configuration->Advanced)
Good point. Actually I wonder whether I should remove this setting! Has anybody ever turned this off??? I don't think so...
Actually i asked myself why i can disable this. Do i have any advantage by disabling, e.g. saving some RAM?
The only reason was safety (scripting can be dangerous).

ogroeger
Posts: 92
Joined: 03 Jul 2007 07:39

Re: @newbies: Quickly copy the file size to the clipboard

Post by ogroeger »

+1 for removing.

Post Reply