Page 1 of 1
File and full path length
Posted: 03 Sep 2012 17:41
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!
Re: File and full path length
Posted: 03 Sep 2012 17:59
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...
Did you not read that post which applies to this issue?
Re: File and full path length
Posted: 03 Sep 2012 20:19
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
---------------------------
.
Re: File and full path length
Posted: 03 Sep 2012 20:28
by Pauleduc
oops, sorry wrong forum
Re: File and full path length
Posted: 03 Sep 2012 20:30
by Pauleduc
No.. I had not looked at this.. thanks for the pointer.