File path including character count

Discuss and share scripts and script files...
Post Reply
CookieMonster

File path including character count

Post by CookieMonster »

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....

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

Re: File path including character count

Post by highend »

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

Post by CookieMonster »

highend wrote:

Code: Select all

	$output = "";
	foreach($file, <get SelectedItemsPathNames |>, "|") {
		$output = $output . strlen($file) . "<crlf>$file<crlf 2>";
	}
	text $output;
That is perfect. Thank You. :)
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

Post by highend »

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.
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

Post by admin »

Scripts in the title bar... that could be the next software revolution. Finally title bars that actually do something... :mrgreen:

CookieMonster

Re: File path including character count

Post by CookieMonster »

highend 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.
I have to look that up in the docs, another idea for a tutorial <where is that guy :)>

CookieMonster

Re: File path including character count

Post by CookieMonster »

admin wrote:Scripts in the title bar... that could be the next software revolution. Finally title bars that actually do something... :mrgreen:
LOL :biggrin:
It is a good idea, my brain was ahead of my typing so I said "title bars".

Post Reply