I need a script that can copy the file path, plus the number of characters in the path and paste it like this; for how many files I want to copy the file path for;
31 (thirty-one character in the entire file path including the drive)
C:\<folder>\<folder>\<filename>
do this for each file
{paste}
40
C:\<folder>\<folder>\<folder>\<filename>
{paste}
so on....
File path including character count
-
highend
- Posts: 14942
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: File path including character count
Code: Select all
$output = "";
foreach($file, <get SelectedItemsPathNames |>, "|") {
$output = $output . strlen($file) . "<crlf>$file<crlf 2>";
}
text $output;One of my scripts helped you out? Please donate via Paypal
-
CookieMonster
Re: File path including character count
That is perfect. Thank You.highend wrote:Code: Select all
$output = ""; foreach($file, <get SelectedItemsPathNames |>, "|") { $output = $output . strlen($file) . "<crlf>$file<crlf 2>"; } text $output;
Can you put scripts somewhere in the title bar for quick access (still learning XY)
-
highend
- Posts: 14942
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: File path including character count
In the title bar? oO Don't think so 
But you can use a button in the toolbar, assign a hotkey to the script, put it in the catalog, etc.
But you can use a button in the toolbar, assign a hotkey to the script, put it in the catalog, etc.
One of my scripts helped you out? Please donate via Paypal
-
admin
- Site Admin
- Posts: 66300
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: File path including character count
Scripts in the title bar... that could be the next software revolution. Finally title bars that actually do something... 
FAQ | XY News RSS | XY X
-
CookieMonster
Re: File path including character count
I have to look that up in the docs, another idea for a tutorial <where is that guyhighend wrote:In the title bar? oO Don't think so
But you can use a button in the toolbar, assign a hotkey to the script, put it in the catalog, etc.
-
CookieMonster
Re: File path including character count
LOLadmin wrote:Scripts in the title bar... that could be the next software revolution. Finally title bars that actually do something...
It is a good idea, my brain was ahead of my typing so I said "title bars".
XYplorer Beta Club