Solved How can I search for long filenames?

IMAyNeed

New member
Power User
Local time
2:19 AM
Messages
501
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 Computer My Computer

At a glance

Windows 7 Ultimate 64-bitIntel® Core™2 Duo mobile processor P8700 2.53...6GB DDRIINVIDIA GeForce GTX 260M
Computer Manufacturer/Model Number
ASUS G72 Notebook
OS
Windows 7 Ultimate 64-bit
CPU
Intel® Core™2 Duo mobile processor P8700 2.53 GHz
Memory
6GB DDRII
Graphics Card(s)
NVIDIA GeForce GTX 260M
Sound Card
EAX Advanced HD 4.0 + Logitech Wireless Headset G930
Monitor(s) Displays
17.3" LED-backlit LCD high-definition plus widescreen
Screen Resolution
1600 x 900
Hard Drives
2 x Seagate Momentus 500 GB 5400.6 SATA 3Gb/s
Cooling
Targus
Mouse
Logitech Wireless Trackball M570
Internet Speed
3 to 6 Mbps Download / .5 to 1 Mbps Upload
Other Info
Clear Modem with Wi-fi*
Comodo Internet Security Premium
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.
 
Last edited:

My Computer My Computer

At a glance

Windows 7 Professional SP1 - x64 [Non-UEFI Boot]Ivy Bridge Core i5 3570K (Delidded)G.Skill "Ares" DDR3 PC3-12800 - 1600MHz (16Gb)Asus Dual-RX480-O4G
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Professional SP1 - x64 [Non-UEFI Boot]
CPU
Ivy Bridge Core i5 3570K (Delidded)
Motherboard
Asus P8Z77-V LE PLUS
Memory
G.Skill "Ares" DDR3 PC3-12800 - 1600MHz (16Gb)
Graphics Card(s)
Asus Dual-RX480-O4G
Sound Card
Creative Sound Blaster Z w/5.1 sound system
Monitor(s) Displays
Asus IPS 23"
Screen Resolution
16/9
Hard Drives
Internal:
500Go Sata 6Gb/s (x2)
500Go Sata 3Gb/s (x2)
SSD 60Go Sata 6Gb/s
PSU
In Win C 900W Series 80+ Platinum
Case
Thermaltake Chaser A71
Cooling
Custom Water Cooling Loop
Keyboard
Cooler Master QuickFire XTi
Mouse
Razer Imperator 2012 (4G)
Antivirus
MSE
Browser
IE 11.0.xxx Rtm
Other Info
"Raid0" with Intel Smart Response Technology (HDD/SSD)
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 [B]C:\Users\You\Folder\[/B] /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 Computer My Computer

At a glance

XP / Win7 x64 ProIntel Quad-Core Q9450 @ 3.2GHz2x2GB GSkill DDR2NVIDIA GeForce 8600 GTS (EVGA)
OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200
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 Computer My Computer

At a glance

Windows 7 Pro x64 (1), Win7 Pro X64 (2)i5-3350p 3.1Ghz/6MB-cache (1); E8400 3.0Ghz/6...8GB PC3-12800 DDR3 (1); 4GB PC3-10600 DDR3 (2)ATI HD7750 (1), (see TV cards); ATI R7 250 (2)
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home-built, two systems (1) and (2)
OS
Windows 7 Pro x64 (1), Win7 Pro X64 (2)
CPU
i5-3350p 3.1Ghz/6MB-cache (1); E8400 3.0Ghz/6MB-cache (2)
Motherboard
ASUS P8Z77-V Pro (1); ASUS P5Q3 (2)
Memory
8GB PC3-12800 DDR3 (1); 4GB PC3-10600 DDR3 (2)
Graphics Card(s)
ATI HD7750 (1), (see TV cards); ATI R7 250 (2)
Sound Card
Realtek ALC892 HD Audio (1); Realtek ALC1200 HD Audio (2)
Monitor(s) Displays
Eizo HD2441W LCD, Eizo S2433W (1); Eizo 24" S2433W (2)
Screen Resolution
1920x1200, 1920x1200 (1); 1920x1200 (2)
Hard Drives
(1) 1TB SATA-II (7200RPM), 2x2TB SATA-III (7200RPM), 250GB SATA-III (10000RPM) for OS; 2x2TB external USB 3.0

(2) 320GB SATA-II (7200RPM), 750GB SATA-II (7200RPM), 150GB SATA-II (10000RPM) for OS; 2TB external USB 3.0
PSU
Nesteq ECS-6001 600W (1); Nesteq ECS-5001 500W (2)
Case
Acousti-Case 360 (1) and (2)
Cooling
Noctua NH-U12P SE2 for CPU, 2x120mm case fans (1) and (2)
Keyboard
IBM PS/2 (1) and (2)
Mouse
Logitech MX Revolution wireless (1); Microsoft wired (2)
Internet Speed
100mbps down / 10mbps up
Antivirus
Microsoft Security Essentials; Malwarebyte Anti-Malware Pro
Browser
Firefox
Other Info
Ceton InfiniTV 4-tuner cablecard-enabled TV card as well as Hauppauge HVR-2250 OTA/ATSC 2-tuner TV card in (1), running under Win7 WMC
Thanks!
 

My Computer My Computer

At a glance

Windows 7 Ultimate 64-bitIntel® Core™2 Duo mobile processor P8700 2.53...6GB DDRIINVIDIA GeForce GTX 260M
Computer Manufacturer/Model Number
ASUS G72 Notebook
OS
Windows 7 Ultimate 64-bit
CPU
Intel® Core™2 Duo mobile processor P8700 2.53 GHz
Memory
6GB DDRII
Graphics Card(s)
NVIDIA GeForce GTX 260M
Sound Card
EAX Advanced HD 4.0 + Logitech Wireless Headset G930
Monitor(s) Displays
17.3" LED-backlit LCD high-definition plus widescreen
Screen Resolution
1600 x 900
Hard Drives
2 x Seagate Momentus 500 GB 5400.6 SATA 3Gb/s
Cooling
Targus
Mouse
Logitech Wireless Trackball M570
Internet Speed
3 to 6 Mbps Download / .5 to 1 Mbps Upload
Other Info
Clear Modem with Wi-fi*
Comodo Internet Security Premium
IMAyNeed, there is a Free alternative to Beyond Compare.
It is less sophisticated, but it is open source.

 

My Computer My Computer

At a glance

Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
Computer type
PC/Desktop
OS
Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
Other Info
"The scale icon at the top right of a post or tutorial is how you can give rep to the member."
Thank you so much for the link Neutron16!
 

My Computer My Computer

At a glance

Windows 7 Ultimate 64-bitIntel® Core™2 Duo mobile processor P8700 2.53...6GB DDRIINVIDIA GeForce GTX 260M
Computer Manufacturer/Model Number
ASUS G72 Notebook
OS
Windows 7 Ultimate 64-bit
CPU
Intel® Core™2 Duo mobile processor P8700 2.53 GHz
Memory
6GB DDRII
Graphics Card(s)
NVIDIA GeForce GTX 260M
Sound Card
EAX Advanced HD 4.0 + Logitech Wireless Headset G930
Monitor(s) Displays
17.3" LED-backlit LCD high-definition plus widescreen
Screen Resolution
1600 x 900
Hard Drives
2 x Seagate Momentus 500 GB 5400.6 SATA 3Gb/s
Cooling
Targus
Mouse
Logitech Wireless Trackball M570
Internet Speed
3 to 6 Mbps Download / .5 to 1 Mbps Upload
Other Info
Clear Modem with Wi-fi*
Comodo Internet Security Premium
Back
Top