Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How can I search for long filenames?

18 May 2011   #1
IMAyNeed

Windows 7 Ultimate 64-bit
 
 
How can I search for long filenames?

I was copying 200 GB of data (I am writing the amount of data because I want to emphasize that I don't want to go through copying them again. And most of these files are so much less than 1 MB which makes copying process much more slower).
27 files (1 gave warning and at the bottom it said "do this for all conflicts - 26 found) gave a warning of "file name is too long".
I chose skip.
Now, how can I find these 27 files?


My System SpecsSystem Spec
.
18 May 2011   #2
NoN

Windows 7 Professional SP1 - x64 [Non-UEFI Boot]
 
 

I'm afraid some of you files will have to be renamed.

PRB: Path Limit Is 260 Bytes, Not Characters

In Windows 7 SP1 some of those issues had been fixed normally but i do not know exactly if the numbers of bytes have really increase.

If you decided to "skip" then you'll find your files again in the drive, which where your data are.
My System SpecsSystem Spec
18 May 2011   #3
FliGi7

XP / Win7 x64 Pro
 
 

Found this online. I can't vouch for it as I haven't tried it but it looks like it would work.

Make a new text file somewhere and put the code below into it. Make changes to the bold text accordingly, save and close it, then rename it to something ending in ".bat". Then, right click, run as admin, and see if it works.

Code:
@echo off 
setlocal EnableDelayedExpansion  

REM  loop over all files in the cwd 
for /f %%a in ('dir C:\Users\You\Folder\ /B') do (    
REM  store this filename in a variable so we can do substringing    
set ThisFileName=%%a    
REM  now take a substring    
set ThisShortFileName=!ThisFileName:~0,255!    
REM  finally, the rename:    
echo ren %%a !ThisShortFileName! )   

:EOF 
endlocal
My System SpecsSystem Spec
.

18 May 2011   #4
dsperber

Windows 7 Pro x64 (1), Win7 Pro X64 (2)
 
 

Quote   Quote: Originally Posted by IMAyNeed View Post
27 files (1 gave warning and at the bottom it said "do this for all conflicts - 26 found) gave a warning of "file name is too long".
I chose skip.
Now, how can I find these 27 files?
Download and install a product named "Beyond Compare". Free 30-day trial, but I'm sure you'll purchase it because it's really so terribly useful for so many things you often do (e.g. sync music files from your PC music collection to your portable music player, etc.).

One of its functions is "folder compare", presented visually in two panes, left side and right side. By specifying the high-level folder (or drive?) for your source and destinations from your copy process, it will compare all of the folders and files under that high-level designation. All differences will be identified... although you'll have to "expand" the highlighted folders to keep seeing the lower-level differences, until you can actually see the file mismatches once you get down to the true low-level folder that had the difference on left and right side.

You can present things either in (a) show me everything, including highlighting the differences) mode, or (b) show me only those folders which have differences.

In your case, your 27 files that did not get copied from source to destination will eventually be shown (once you expand all of the enclosing higher-level parent folders involved). You can then choose to do whatever you want... e.g. right click and choose "copy from left to right" if your source pane is on the left and target pane is on the right". I suspect the too-long file name issue will produce a popup here as well, and you will be offered an opportunity to rename it before copying so as to be acceptable.

This "folder compare" function is just one of MANY things you can do with Beyond Compare.
My System SpecsSystem Spec
18 May 2011   #5
IMAyNeed

Windows 7 Ultimate 64-bit
 
 

Thanks!
My System SpecsSystem Spec
18 May 2011   #6
Neutron16

Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
 
 

IMAyNeed, there is a Free alternative to Beyond Compare.
It is less sophisticated, but it is open source.

My System SpecsSystem Spec
18 May 2011   #7
IMAyNeed

Windows 7 Ultimate 64-bit
 
 

Thank you so much for the link Neutron16!
My System SpecsSystem Spec
Reply

 How can I search for long filenames?




Thread Tools




Similar help and support threads
Thread Forum
How to Autofill Filenames?
I'm not sure how to word this question. I remember figuring out in Windows XP how to autofill filenames in Windows Explorer, but I can't remember how to do it anymore. Does anyone know what I mean and how to do it? So for instance, say I have 100 files that I want to name as XXXX01, XXXX02,...
General Discussion
filenames and titles of videos DVD to MP4
I am putting DVDs on an iPod using a DVD ripper and then iTunes. The DVDs have multiple videos. When then rip from the DVD to a folder on my hard drive, they all are titled with the DVD title and then numbered (such as Windows_Video_Title1.mp4) rather than with the name of each video. I went in...
Music, Pictures & Video
Short and long name of domain and web search!
Hi everyone, I would like to create a domain with a long name, say "I like windows seven forum" (www.ilikewindowsevenforum.com). Is it possible to create it by its acronym (i.e www.ilwsf.com) while keeping it searchable by its full name, parts of it, or another assigned name? I mean if I...
Network & Sharing
How to search Explorer for file names that are too long
I'm trying to save a number of folders/files to my DVD that are rarely...if at all...used currently. When I try to burn them...I'm getting a failure saying a number of file names are too long ? But...it doesn't say which files in which folders...Is there a way to search for any/all files that...
General Discussion
Windows 7 Ultimate 32bit Filenames
Hi, on the leaked versions of the official MSDN ISO images the filename is '7600.16385.090713-1255_x64fre_client_en-us_Retail_Ultimate-GRMCULXFRER_EN_DVD.iso' whereas the MSDN filename is 'en_windows_7_ultimate_x86_dvd_x15-65921.iso'. Why are they different, and also where did the former filename...
General Discussion
How explorer sorts filenames.
Is it possible to make windows filemanager explorer sort filenames in a way so it doesn't include names with THE under T?
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 13:40.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App