Re: long file names
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Tue, 25 Sep 2007 21:26:26 +0200
"Ben" <blargg27@xxxxxxxxx> wrote in message
news:1190744286.731964.206610@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Sep 22, 7:40 am, "Meg" <m...@xxxxxxxxxxxxxxxxxxx> wrote:
are there any utilities that allow me to search for files with very long
file names?
I'm having some back up problems and we think it is because of long file
names, but i don't know which ones.
using windows xp pro
thanks
Yes. Powershell and probably cmd.exe can do this. I just barely
learned powershell, so here is my go:
foreach( $filename in Get-ChildItem c:\temp -recurse )
{ if( $filename.Name.Length -gt 255 ) {$filename.FullName;}}
-prints path and filename of long filenames to screen
-Change c:\temp to the directory you want to search
-change 255 to the length of file you wish to check.
Your report is at variance with my tests. Powershell appears to
be as much subject to the 255 character limitation as most
other Windows executables. I created a path of length 300
but PowerShell was unable to detect it or change into the
directory at the far end.
.
- Follow-Ups:
- Re: long file names
- From: Ben
- Re: long file names
- References:
- long file names
- From: Meg
- Re: long file names
- From: Ben
- long file names
- Prev by Date: Re: long file names
- Next by Date: Re: temp files in C:\Documents and Settings\Local Settings\Temp
- Previous by thread: Re: long file names
- Next by thread: Re: long file names
- Index(es):
Relevant Pages
|
Loading