The filename or extension is too long?

Status
Not open for further replies.

altjx

New member
Member
Local time
11:37 AM
Messages
43
I'm trying to delete something I recovered off the HD, and now I can't delete it. I can't rename, delete, cut, copy, anything. I've seen people say do it from CLI like abbreviating such as "del filename~1.txt" or whatever t he extension is... but even that gives the error saying its too long. anyone know how to forcefully delete a file if its name is too long?
 

My Computer My Computer

At a glance

Windows 7 Enterprise (64-bit)Intel Dual Core 2.53GHz4GB DDR2
OS
Windows 7 Enterprise (64-bit)
CPU
Intel Dual Core 2.53GHz
Memory
4GB DDR2
Hard Drives
320GB HDD

My Computer My Computer

At a glance

Windows 7 Ultimate 64bitAMD Phenom Quad core 9950 black edition16Gb2x XFX Radeon 5850
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Windows 7 Ultimate 64bit
CPU
AMD Phenom Quad core 9950 black edition
Motherboard
Gigabyte
Memory
16Gb
Graphics Card(s)
2x XFX Radeon 5850
Sound Card
PCI Express X-Fi Titanium / Logitech G35
Monitor(s) Displays
2x HP 2410i
Screen Resolution
1920x1080
Hard Drives
2x 500Gb Seagate
1x 300Gb Seagate
1x 1Tb Seagate
2x 1Tb Hitatchi
PSU
Jean Tech Storm 700W
Case
Cooler Master COSMOS S
Cooling
Akasa Evo Blue Pro
Keyboard
Logitech G15
Mouse
Mad Catz M.M.O. 7
Internet Speed
12mb

My Computer My Computer

At a glance

Vista, Windows7, Mint Mate, Zorin, Windows 8from 1.6GHz Duo to i7
Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
This is a path length type error.

The best way to do this is by mapping a drive to the deepest folder...

In explorer Find Map Network Drive
Select a drive letter
Browse to the folder location with the file in it
Uncheck the box about reconnect at login and click OK
You should now be able to open that folder from the drive letter in Explorer and delete the files.

You may have to rename the file if the file name is still too long, but you should be able to from this point. Give it a 1 charicter name and that should allow you to delete it.

TakeOwn probably will not work as this is most likely not a Permissions issue.
 

My Computer My Computer

At a glance

Win 7 Ultimate 32bitC2D E6600 2.4Ghz4G Kingston KHX5400D2EVGA GTX 570 HD SC (012-P3-1573-KR)
Computer Manufacturer/Model Number
Self Built
OS
Win 7 Ultimate 32bit
CPU
C2D E6600 2.4Ghz
Motherboard
Intel D965WH
Memory
4G Kingston KHX5400D2
Graphics Card(s)
EVGA GTX 570 HD SC (012-P3-1573-KR)
Sound Card
On-Board
Monitor(s) Displays
Samsung 226BW
Screen Resolution
1680 x 1050
Hard Drives
2 x 250 Seagate Barracuda
2 x 500 Seagate Barracuda (Raid1)
PSU
Corsair TX750W
Case
In-Win C589
Cooling
Stock Intel Cooling
oh what the hell? I'm subscribed and I just got notifications... sorry for the late response..
I tried that link earlier and it just kept telling me I didn't have a file it folder selected. ill try to map it when I wake up in the morning. thanks. sorry about the late response. my notification came in late for some reason lol
 

My Computer My Computer

At a glance

Windows 7 Enterprise (64-bit)Intel Dual Core 2.53GHz4GB DDR2
OS
Windows 7 Enterprise (64-bit)
CPU
Intel Dual Core 2.53GHz
Memory
4GB DDR2
Hard Drives
320GB HDD
Old thread, but it fixed my problem

I had this exact problem trying to delete some bookmarks.

Tepid's suggestion to map the folder (in this case "favorites") to a drive letter and work with it from there worked.

Thanks,
-eric-
 

My Computer My Computer

At a glance

Windows 7 Home Premium 64bit
OS
Windows 7 Home Premium 64bit
Burn Puppy Linux to a CD. Boot to Linux, locate your file and delete it. That was the only thing that worked for me, and I tried everything else.
 

My Computer My Computer

At a glance

Windows 7 Home PremiumDualCore AMD Athlon 64 X2, 2000 MHz (10 x 200...4048 MB (PC3200 DDR SDRAM)Asus EN9600GSO [nVIDIA GeForce 9600 GSO (384 ...
Computer Manufacturer/Model Number
Home built
OS
Windows 7 Home Premium
CPU
DualCore AMD Athlon 64 X2, 2000 MHz (10 x 200) 3800+
Motherboard
Asus A8N-SLI Deluxe Socket 939
Memory
4048 MB (PC3200 DDR SDRAM)
Graphics Card(s)
Asus EN9600GSO [nVIDIA GeForce 9600 GSO (384 MB)]
Sound Card
Creative SB X-Fi Sound Card
Monitor(s) Displays
Sansum SyncMaster 215TW/216TW
Hard Drives
Seagate Barracuda ST3250824AS
Seagate Barracuda ST3160023A
Seagate Barracuda ST3808110AS
PSU
Enermax EG465P-VE 24P
Case
CM Stacker
Cooling
Standard case, CPU and PSU cooling fans
Most suggestions are on the money, but should they fail to resolve your problem, you might also want to run a disk check to fix possible NTFS errors:
  1. Open Computer
  2. Right-click the drive that you want to check, then click Properties.
  3. Click the Tools tab
  4. Click Check Now (you might need to respond to a UAC prompt)
  5. Make sure the is a checkmark in the Automatically fix file system errors option.
  6. Click Start
 

My Computer My Computer

At a glance

Windows 7 Professional 32-bit SP1AMD A4/A63.00GB EDOVMware SVGA 3D
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Virtual Machine
OS
Windows 7 Professional 32-bit SP1
CPU
AMD A4/A6
Motherboard
Intel Corporation 440BX Desktop Reference Platform
Memory
3.00GB EDO
Graphics Card(s)
VMware SVGA 3D
Sound Card
High Definition Audio Device
Monitor(s) Displays
Generic Non-PnP Monitor on VMware SVGA 3D
Screen Resolution
1440x900
Hard Drives
1 x 60GB VMware Virtual SATA Hard Drive ATA Device
Antivirus
Kaspersky Total Security
No idea where it came from but I have a folder with about 50 sub-folders - each one called: '-Test', each one is empty.
It will not delete - "The source file name's are larger than is supported by the file system"
I've tried all of the suggestions and many more I've found on the net to no avail.
I've laboriously renamed each of them to a single digit but the problem is not solved. An odd thing here: The deepest folder has no option to rename via the right-click menu. Also, when renaming folders a few levels above the deepest folder another sub-folder gets added (called: "-Test") to the bottom!
I've tried mapping a drive to the deepest file - cures nothing.
I cannot remove or delete the problem folder via the Command Prompt or Robocopy.
I've run chkdsk - no problems but the message: "Windows may not detect all cycles on your volume because the directory structure is too deep" appears.
I've tried moving parts of the problem folder to other areas and then deleting them. That works but there's always just one section left which then mysteriously grows back to 47 sub-folders.
I've run full malware and virus checks to no avail.
The deepest folder is odd in that the right-click menu is missing quite a few entries such as Properties, New, Delete, Rename, Cut, Copy, Send To, etc.
I've tried adding the whole thing to a zipped archive - no go.
Anyone got any further ideas?
 

My Computer My Computer

At a glance

Windows 7 Home Premium Edition (64-bit) Servi...Intel(R) Core(TM) i5-2320 CPU @ 3.00GHz8175 MBNVIDIA GeForce GT 530
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Inspiron 620
OS
Windows 7 Home Premium Edition (64-bit) Service Pack 1 (Build 7601)
CPU
Intel(R) Core(TM) i5-2320 CPU @ 3.00GHz
Motherboard
Dell
Memory
8175 MB
Graphics Card(s)
NVIDIA GeForce GT 530
Sound Card
PreSonus Audiobox USB Audio
Monitor(s) Displays
2x; Dell U2312HM DVI | BenQ E2200HD D-SUB
Screen Resolution
1920 x 1080
Hard Drives
C: 931.5GB | F: 931.4GB | H: 931.5GB | I: 931.5GB | J: 465.7GB
PSU
Dell
Case
Dell Standard
Cooling
Dell Standard
Keyboard
Dell Standard
Mouse
Logitech M325
Internet Speed
16Mb/s
Antivirus
Avast
Browser
Chrome, Firefox, Safari, IE
Use Command

Use command prompt..
Navigate to the directory...
use the del command
Dont type the whole file name just use first 3 or 4 alphabets and then put * without space..
For eg if i wanted to delete file named Seveneightnineten
I will type del sev* and then enter.
Assuming you dont another file that starts with sev :)
 

My Computer My Computer

At a glance

Windows 7 x64 Ultimate
OS
Windows 7 x64 Ultimate
My Fix

I had this same problem, but had trouble following the Map Network Drive instructions. Figured I'd register to post how I solved the issue.

I use a program called "Teracopy" for some of my file management. I simply dragged the files that were too long to rename and too long to delete (they were Steam autobackup files that were created when attempting to backup my installed Steam games) into the Teracopy window, then clicked "More", "Delete" and deleted the source files. Worked perfectly after trying to use the command prompt with various commands like "rename", "del", "rmdir", etc.

Linux would probably work too, but this way you can solve the problem natively with software you might already have installed!

Cheers
 

My Computer My Computer

At a glance

Windows 7 x64 Ultimate
Computer type
PC/Desktop
OS
Windows 7 x64 Ultimate
Status
Not open for further replies.
Back
Top