Is it possible to use TC to scan to find path\file names which exceed a certain value.
For example, I want to list all path\file names over 255 characters within a particular directory.
Scan to find length of path/file names?
Moderators: Hacker, petermad, Stefan2, white
TC Everything searches
ev:yourfolder len:>255
ev:file:*.* len:>255
ev:folder:*.* len:>255
ev:yourfolder len:>255
ev:file:*.* len:>255
ev:folder:*.* len:>255
Last edited by Horst.Epp on 2016-11-11, 14:39 UTC, edited 2 times in total.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1396a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.6 x64
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1396a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.6 x64
There's also a way without Everything: Install plugin Filename_ChrCount. Afterwards you can use the field "Pathname (ChrCount)" in TC's Find Files, tab Plugins, to check whether the paths exceed a certain length, in your case 255.
Regards
Dalai
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
PowerShell: Scan to find length of path/file names?
Depending on what to do with the result, I would do it perhaps with PowerShell:spikey wrote:Is it possible to use TC to scan to find path\file names which exceed a certain value.
For example, I want to list all path\file names over 255 characters within a particular directory.
Code: Select all
PS H:\temp>
PS H:\temp>dir -rec *.txt |select FullName, @{L="PathLen";E={($_.FullName).Length}}|sort PathLen -desc|Export-Csv zzzPathLen.csv
PS H:\temp>
zzzPathLen.csv
Code: Select all
H:\temp\NewFileFromTemplate\ShellNew\%Y-%m-%d Work folder structure\Sub Folder1\01 Order\%Y-%m-%d_KONTAKT.txt,"109"
H:\temp\SubFolders\SubFolder-01-03\Sub03Folder-01-01\Sub03Folder-Sub01\Space between lower upper regex.txt,"106"
H:\temp\PS\Encode2UTF8\sub folder\List of Zwei- drei-stellige Namen Songs music.txt.orig.txt,"92"
H:\temp\PS\Encode2UTF8 - Kopie\sub folder\List of Zwei- drei-stellige Namen Songs music.txt,"91"
H:\temp\001 space\_ aaaa TEST AllowedChars03 ' Apostrophe (single quotation mark) #.TXT,"90"
H:\temp\AutoHotkey 1.0.48.05_(30-Sep-2013)-TESTS\Extras\Editors\UltraEdit\Separators.txt,"88"
- - -
Clarifying:
dir -rec *.txt |
select FullName, @{L="PathLen";E={($_.FullName).Length}} |
sort PathLen -desc |
Export-Csv zzzPathLen.csv
Get-ChildItem -Recurse *.txt |
Select-Object FullName, @{ Label="PathLen"; Expression={($_.FullName).Length} } |
Sort-Object PathLen -Descending |
Export-Csv zzzPathLen.csv
- - -
Alternative:
Get-ChildItem -Recurse *.txt |
Select-Object FullName, @{ Label="PathLen"; Expression={($_.FullName).Length} } |
Sort-Object PathLen -Descending |
Select-Object -First 15 |
Export-Csv zzzPathLen.csv
or rather:
Get-ChildItem -Recurse *.txt |
Select-Object FullName, @{ Label="PathLen"; Expression={($_.FullName).Length} } |
Sort-Object PathLen |
Select-Object -Last 15 |
Export-Csv zzzPathLen.csv
Just an idea

I am a bit confused. I have Everything installed as a standalone program. Are you saying there is a way to integrate Everything into TC?Dalai wrote:There's also a way without Everything: Install plugin Filename_ChrCount. Afterwards you can use the field "Pathname (ChrCount)" in TC's Find Files, tab Plugins, to check whether the paths exceed a certain length, in your case 255.
I have used the ChrCount method and it works reasonably well. It would be nicer still if the character count for a file/path was also displayed.
Last edited by spikey on 2016-11-14, 21:16 UTC, edited 2 times in total.