Avatar of ttrbrtsn
ttrbrtsnFlag for United States of America

asked on 

file too long to del, move, rename

i have a file on the network thats like 3 or 4 subfolder deep. to make it worse, the file name must be about 100 characters long. i cannot move it to the root of c. i cannot rename, delete or anything. any advise

can i use robocopy or something ?
Windows Server 2008Windows 7

Avatar of undefined
Last Comment
Daniela .
Avatar of Mr Tortu(r)e
Mr Tortu(r)e
Flag of France image


you could use unlocker to rename or remove it.
I use it for a while, it is pretty effective.
Avatar of Mr Tortu(r)e
Mr Tortu(r)e
Flag of France image

Blurred text
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of rindi
Flag of Switzerland image

You could create a share for the folder the file is in, then connect to that share using a new drive letter, then shorten it's name or delete it. Once done be sure to unmap the share and remove the share again.
Avatar of Joe Winograd
Joe Winograd
Flag of United States of America image

I've been using an excellent file manager called Total Commander for many years:

It is shareware so you can see if it works well for you. It has no problem operating on long file names. Here's a screenshot showing a dialog when I copied a folder/subfolders with many files that have long file names (I redacted some characters for privacy purposes):

User generated image
I simply clicked Keep all and it copied fine. As a disclaimer, I want to emphasize that I have no affiliation with this company and no financial interest in it whatsoever. I am simply a happy user/customer. Regards, Joe
Avatar of Mr Tortu(r)e
Mr Tortu(r)e
Flag of France image

hi again,
unlocker is free and will do the job ; but you could try another as advised upper, I think total commander is a good soft, and it will do more than what you asked here ; but as stated it is shareware, so it's up to you.
Also Rindy solution could work and is free too, without any software installation.
Avatar of NVIT
Flag of United States of America image

Yes, you can use robocopy. There are many site using that method. Here's one:
Avatar of deroode
Flag of Netherlands image

We encouter this problem a lot. What usually works is to (temporary) move the Directory that the long file is in to the root of the share, then rename the file, then move the directory back to it's original place.

You can also (temporary) rename the directories to shorter names, then rename the file:

rename \\server\share\Very_long_directory_name\Even_longer_directory_name\subdirectory

to \\server\share\V\E\s

then do the file rename, and rename everything back to normal.
Avatar of Jeff Glover
Jeff Glover
Flag of United States of America image

We use xxcopy, it supports up to 255 characters in a path/filename
Avatar of Daniela .
Daniela .

This problem occurs because of an issue in how Windows handles the long-path errors.
Windows Server 2008
Windows Server 2008

Windows Server 2008 and Windows Server 2008 R2, based on the Microsoft Vista codebase, is the last 32-bit server operating system released by Microsoft. It has a number of versions, including including Foundation, Standard, Enterprise, Datacenter, Web, HPC Server, Itanium and Storage; new features included server core installation and Hyper-V.

Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews


IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo