> <datem yyyy.mm.dd> result: 2015.12.18
> Can you help me, i want include the value of the size of each file : 2015.12.18_563128_bytes.
>
> Thanks.
Code: Select all
$list = "";
foreach($file, <get SelectedItemsPathNames |>) {
$props = "<datem yyyy.mm.dd>_" . property("size", $file) . "_bytes";
$list = $list . $file . " - " . $props . <crlf>;
}
text $list;Sorry my explanation less, I want to change the name of each file to be 2015.12.18_563128_byteshighend wrote:Something like this?Code: Select all
$list = ""; foreach($file, <get SelectedItemsPathNames |>) { $props = "<datem yyyy.mm.dd>_" . property("size", $file) . "_bytes"; $list = $list . $file . " - " . $props . <crlf>; } text $list;
Code: Select all
::foreach($f, <selitems |>){ renameitem( formatdate(property('System.DateModified',$f), 'yyyy.dd.mm').'_'.filesize($f).'_bytes', $f, 1+4 ); };SammaySarkar wrote:select the files to rename and then run this script. (You can just paste this into the addressbar then press ENTER)Code: Select all
::foreach($f, <selitems |>){ renameitem( formatdate(property('System.DateCreated',$f), 'yyyy.dd.mm').'_'.filesize($f).'_bytes', $f, 1+4 ); };
Code: Select all
::foreach($f, <selitems |>){ renameitem(report('{Modified yyyy.mm.dd_hh.nn.ss.fff}', $f).'_'.filesize($f).'_bytes', $f, 5); };SammaySarkar wrote:Then use this.Code: Select all
::foreach($f, <selitems |>){ renameitem(report('{Modified yyyy.mm.dd_hh.nn.ss.fff}', $f).'_'.filesize($f).'_bytes', $f, 5); };