syntax <cursize>, can't use for rename each file.
it just rename for one file.
can explain of this?
syntax <cursize>, can't use for rename each file.
Forum rules
You might want to read this if you're looking for priority service
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%).
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.
How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
You might want to read this if you're looking for priority service
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%).
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.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
-
adisaputra
- Posts: 11
- Joined: 17 Dec 2015 23:00
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: syntax <cursize>, can't use for rename each file.
Code: Select all
foreach($file, <get SelectedItemsNames |>) {
$size = property("size", $file);
$size = filesize($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.
use
Code: Select all
<prop System.Size>Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ 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.
-> No <prop System.Size>use for rename each file
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.
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>_bytesFAQ | XY News RSS | XY X
-
adisaputra
- Posts: 11
- Joined: 17 Dec 2015 23:00
Re: syntax <cursize>, can't use for rename each file.
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.
Thank youhighend wrote:Both commands can be used to get the size of the current fileCode: Select all
foreach($file, <get SelectedItemsNames |>) { $size = property("size", $file); $size = filesize($file); }
-
adisaputra
- Posts: 11
- Joined: 17 Dec 2015 23:00
Re: syntax <cursize>, can't use for rename each file.
Thank youSammaySarkar wrote:useCode: Select all
<prop System.Size>
XYplorer Beta Club