syntax <cursize>, can't use for rename each file.

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
adisaputra
Posts: 11
Joined: 17 Dec 2015 23:00

syntax <cursize>, can't use for rename each file.

Post by adisaputra »

syntax <cursize>, can't use for rename each file.
it just rename for one file.

can explain of this?

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: syntax <cursize>, can't use for rename each file.

Post by highend »

Code: Select all

    foreach($file, <get SelectedItemsNames |>) {
        $size = property("size", $file);
        $size = filesize($file);
    }
Both commands can be used to get the size of the current file
One of my scripts helped you out? Please donate via Paypal

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: syntax <cursize>, can't use for rename each file.

Post by bdeshi »

use

Code: Select all

<prop System.Size>
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: syntax <cursize>, can't use for rename each file.

Post by highend »

use for rename each file
-> No <prop System.Size>
One of my scripts helped you out? Please donate via Paypal

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

Re: syntax <cursize>, can't use for rename each file.

Post by admin »

Yes, if you are looking for a Batch Rename pattern with a filesize variable, this works:

Code: Select all

*-<datem yyyy.mm.dd>_<prop System.Size>_bytes

adisaputra
Posts: 11
Joined: 17 Dec 2015 23:00

Re: syntax <cursize>, can't use for rename each file.

Post by adisaputra »

admin wrote:Yes, if you are looking for a Batch Rename pattern with a filesize variable, this works:

Code: Select all

*-<datem yyyy.mm.dd>_<prop System.Size>_bytes

Thank you admin..

adisaputra
Posts: 11
Joined: 17 Dec 2015 23:00

Re: syntax <cursize>, can't use for rename each file.

Post by adisaputra »

highend wrote:

Code: Select all

    foreach($file, <get SelectedItemsNames |>) {
        $size = property("size", $file);
        $size = filesize($file);
    }
Both commands can be used to get the size of the current file
Thank you

adisaputra
Posts: 11
Joined: 17 Dec 2015 23:00

Re: syntax <cursize>, can't use for rename each file.

Post by adisaputra »

SammaySarkar wrote:use

Code: Select all

<prop System.Size>
Thank you

Post Reply