File and full path length

Features wanted...
Post Reply
Pauleduc
Posts: 23
Joined: 01 Sep 2012 13:03
Location: Toronto, ON

File and full path length

Post by Pauleduc »

Would it be possible to add a context menu option to display the length of the full path name for a file? You know, just right click on a file and select file name length or full path length for a specific file?

I often have problems copying files because the full length of the path name is over the 260 character limit. It would be handy to have this function instead of me manually counting all the characters in the full path name.

Thanks!
Paul

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: File and full path length

Post by j_c_hallgren »

Why do that when the info is readily available via file info tips as I said in http://www.xyplorer.com/xyfc/viewtopic. ... 917#p75917? No click even needed! Just hover... :wink:

Did you not read that post which applies to this issue?
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: File and full path length

Post by Stefan »

That request inspires me to an script:

* Have Dual Pane enabled
* In one pane browse to the target folder
* In the other pane select the file to copy

* execute this script

Code: Select all

  $TargetPath = get("Path", "i"); $LenP = strlen($TargetPath) +1;
  $SelectedFile = "<curname>";    $LenF = strlen($SelectedFile);
  msg "Selected File:<tab>$SelectedFile<crlf>
       Target Path:<tab>$TargetPath\<crlf 3>
       New length:<tab>Path $LenP + File $LenF = " . $LenP+$LenF;

* Example result:

Code: Select all

---------------------------
           XYplorer
---------------------------
Selected File:	Untitled1-saved with NewName.txt
 Target Path:	E:\temp\_Ricoh Caplio software for Windows\_caprio Orig CD\Caplio Software\Disk1


 New length:    Path 81 + File 32 = 113
---------------------------
             OK   
---------------------------


.

Pauleduc
Posts: 23
Joined: 01 Sep 2012 13:03
Location: Toronto, ON

Re: File and full path length

Post by Pauleduc »

oops, sorry wrong forum
Paul

Pauleduc
Posts: 23
Joined: 01 Sep 2012 13:03
Location: Toronto, ON

Re: File and full path length

Post by Pauleduc »

j_c_hallgren wrote:Why do that when the info is readily available via file info tips as I said in http://www.xyplorer.com/xyfc/viewtopic. ... 917#p75917? No click even needed! Just hover... :wink:

Did you not read that post which applies to this issue?
No.. I had not looked at this.. thanks for the pointer.
Paul

Post Reply