Re: long file names




"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.


.



Relevant Pages

  • Re: which systems listen to Powershell?
    ... remotely change the registry, ... you can use some of the WMI classes against NT4, ... I see you have also asked the question over on the PowerShell NG. ... Windows NT4.0 Windows 2000? ...
    (microsoft.public.windows.server.scripting)
  • Re: Windows 2008 File Share via VBS
    ... I want to get the VBScript working before ... create a share on a Windows 2008 file server ... wscript.echo MkShr ... somethign completely different (except Powershell I don't have the time ...
    (microsoft.public.scripting.vbscript)
  • Re: which systems listen to Powershell?
    ... NT4 isn't listed as a supported OS for .NET Framework 2.0 so it ... I see you have also asked the question over on the PowerShell NG. ... if you have a test NT4 machine and want to install .NET 2.0 ... Windows NT4.0 Windows 2000? ...
    (microsoft.public.windows.server.scripting)
  • Re: which systems listen to Powershell?
    ... NT4 isn't listed as a supported OS for .NET Framework 2.0 so it ... I see you have also asked the question over on the PowerShell NG. ... if you have a test NT4 machine and want to install .NET 2.0 ... Windows NT4.0 Windows 2000? ...
    (microsoft.public.windows.server.scripting)
  • Re: Help with script?
    ... I'm not sure about the situation with Windows 2000. ... The .NET Framework 2.0 ... PowerShell will run on Win2k. ... .Net FW 2.0 and powershell on the server to use this code correctI? ...
    (microsoft.public.windows.server.scripting)

Loading