Page 1 of 1

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

Posted: 18 Dec 2015 04:05
by adisaputra
syntax <cursize>, can't use for rename each file.
it just rename for one file.

can explain of this?

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

Posted: 18 Dec 2015 08:25
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

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

Posted: 18 Dec 2015 09:55
by bdeshi
use

Code: Select all

<prop System.Size>

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

Posted: 18 Dec 2015 10:34
by highend
use for rename each file
-> No <prop System.Size>

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

Posted: 18 Dec 2015 11:06
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

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

Posted: 20 Dec 2015 02:42
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..

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

Posted: 20 Dec 2015 02:43
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

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

Posted: 20 Dec 2015 02:43
by adisaputra
SammaySarkar wrote:use

Code: Select all

<prop System.Size>
Thank you