Re: long file names



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.



.



Relevant Pages

  • Re: Batch files from any file name?
    ... Given the fact that the concept of a filename as metadata is fraught ... It struck me that you could probably accomplish this in powershell via ... I tested and created a text file called helloWorld (with no extension) ... It looks like if you create a cmdlet then you can ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: long file names
    ... Powershell appears to ... This is the longest filename I could create in explorer. ... New Powershell script: ...
    (microsoft.public.windows.file_system)
  • Re: long file names
    ... Powershell and probably cmd.exe can do this. ... -prints path and filename of long filenames to screen ... other Windows executables. ...
    (microsoft.public.windows.file_system)
  • Re: long file names
    ... Powershell appears to ... This is the longest filename I could create in explorer. ... New Powershell script: ...
    (microsoft.public.windows.file_system)
  • Re: Transferring directory structure to Windows
    ... Transferring directory structure to Windows ... Filename collisions are a real threat but it should be ... whether FTP, tar, or whatever, you will only wind up ...
    (AIX-L)

Loading