File name too long
Solved
louloute
-
Redface -
Redface -
Hello,
I have files that were created on my PC (thanks to the internet!). Their names are very long, and I can't delete or rename them either in DOS or in Windows...
Does anyone have any ideas???
Thanks in advance.
I have files that were created on my PC (thanks to the internet!). Their names are very long, and I can't delete or rename them either in DOS or in Windows...
Does anyone have any ideas???
Thanks in advance.
21 réponses
- 1
- 2
Suivant
I faced this problem this morning (unable to delete a file with a name that's too long)! Here’s what I did:
I copied the folder containing my file with the endless name to the root of my drive!
This way, its access name was much shorter and I was able to delete it.
If this can help some...
Have a nice day!
I copied the folder containing my file with the endless name to the root of my drive!
This way, its access name was much shorter and I was able to delete it.
If this can help some...
Have a nice day!
Hello, resolved I know, still another possible thing!
Create a new folder, rename it whatever you want, "BUT NOT TOO LONG"! Then archive it with WinRAR by checking the box "delete folder after archiving"! Then open the RAR file, and rename from there the file that has a name that is too long, and it works perfectly! I just did it!
Create a new folder, rename it whatever you want, "BUT NOT TOO LONG"! Then archive it with WinRAR by checking the box "delete folder after archiving"! Then open the RAR file, and rename from there the file that has a name that is too long, and it works perfectly! I just did it!
Yo,
For those who have encountered this little problem, it can be easily solved with DOS commands.
Open a DOS window via the start menu "run" then "cmd"
Then simply use the command DEL filename.ext
This problem can also occur due to a too long directory structure (i.e. a large number of directories)
In this case, if you want to delete the entire structure, use the command
rd /q /s mydirectory
The /q option means that there will be no confirmation request for the deletion of each file (be careful though :)
The /s option ensures that the entire directory and its subdirectories are deleted even if it is not empty.
I know the post is a bit old but hey, I just encountered the problem myself, so I'm sharing my solution with you ;)
See Ya
For those who have encountered this little problem, it can be easily solved with DOS commands.
Open a DOS window via the start menu "run" then "cmd"
Then simply use the command DEL filename.ext
This problem can also occur due to a too long directory structure (i.e. a large number of directories)
In this case, if you want to delete the entire structure, use the command
rd /q /s mydirectory
The /q option means that there will be no confirmation request for the deletion of each file (be careful though :)
The /s option ensures that the entire directory and its subdirectories are deleted even if it is not empty.
I know the post is a bit old but hey, I just encountered the problem myself, so I'm sharing my solution with you ;)
See Ya
You can avoid typing the entire directory structure by navigating to the folder via the cmd window. To position yourself in a folder, the command is "cd" followed by the name of the folder. For example, "cd windows" will take you to the windows folder. The advantage is that once you are directly in the folder where the problematic file is located, you only need to type "del" followed by the name of the file directly, which will reduce the risk of typing errors in the directory structure.
For those who are really struggling with the internet jargon of software!
I believe the subject is still relevant in 2015!
Under Windows 8.1, the problem occurred when I renamed a file World.
Following the advice mentioned above, my knowledge failed!
Rebellious by nature, I looked for another alternative.
So, the file world extension is too long, error message, unable to modify, delete, copy, paste, transfer, right-click, left-click, taskbar!
One ID, one test and it works, too simple even!
In the genealogy of your bugged folder, simply go back into the created folders to get there and shorten one or more file names!
Ex:
In my case, it works, hoping it does for you too?
they've tried and you should too!
I believe the subject is still relevant in 2015!
Under Windows 8.1, the problem occurred when I renamed a file World.
Following the advice mentioned above, my knowledge failed!
Rebellious by nature, I looked for another alternative.
So, the file world extension is too long, error message, unable to modify, delete, copy, paste, transfer, right-click, left-click, taskbar!
One ID, one test and it works, too simple even!
In the genealogy of your bugged folder, simply go back into the created folders to get there and shorten one or more file names!
Ex:
In my case, it works, hoping it does for you too?
they've tried and you should too!
Thank you for the explanations, I still struggled a lot because the folders and files named "too long" were on the external drive.
I was able to delete part of it via the CMD system, DOS prompt with RD\q\s "my folder." However, about a dozen 1 byte files remained in place, I tried all the suggestions mentioned above, including FILEZILA, but nothing worked.
I attempted archiving with 7ZIP, and with surprising ease, everything could be deleted. It was suggested with RAR
If my experience can help others, that would be great.
I can go to sleep in "peace."
I was able to delete part of it via the CMD system, DOS prompt with RD\q\s "my folder." However, about a dozen 1 byte files remained in place, I tried all the suggestions mentioned above, including FILEZILA, but nothing worked.
I attempted archiving with 7ZIP, and with surprising ease, everything could be deleted. It was suggested with RAR
If my experience can help others, that would be great.
I can go to sleep in "peace."
Bonjour à vous, personnellement, lorsque j'ai un problème de ce type, je boot mon PC avec une disquette DOS 98 et je me sers de la fonction deltree du DOS 98 pour détruire ce fichier. Deltree se trouve aussi dans Win95 et 98 dans c:\windows\command, à vous de jouer, cela marche chez moi, donc cela doit se faire chez vous. À bientôt, Patrick de Reims.
Personally, I found a solution that worked for me:
you start a command prompt in your folder where your file is located (cmd.exe)
you type dir
you see the name of the file "blablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablabla.jpg"
you type del [the first eight letters of the file without the extension]
you erase the last two letters
in parallel, you open Notepad (notepad.exe) or another basic editor, and you type two "tilde" ALT-GR+2 "~"
you copy one to the clipboard, and you return to the command window
you right-click (paste) and type the number 1 then the file extension
you hit enter and it's done!
EX: C:\Mydir\mydir\blablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablabla.jpg
-->> you need to type (in the folder c:\mydir\mydir):
del blablabl
del blabla
del blabla~1
del blabla~1.jpg then enter
In fact, you just need to (to simplify) delete the file by saying its true name which is in the 8+3 format
since it exceeds 8 characters, you need to reduce it to 6 and add "~1" not forgetting the extension
There you go, hoping to have helped some people, I say goodbye!
you start a command prompt in your folder where your file is located (cmd.exe)
you type dir
you see the name of the file "blablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablabla.jpg"
you type del [the first eight letters of the file without the extension]
you erase the last two letters
in parallel, you open Notepad (notepad.exe) or another basic editor, and you type two "tilde" ALT-GR+2 "~"
you copy one to the clipboard, and you return to the command window
you right-click (paste) and type the number 1 then the file extension
you hit enter and it's done!
EX: C:\Mydir\mydir\blablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablabla.jpg
-->> you need to type (in the folder c:\mydir\mydir):
del blablabl
del blabla
del blabla~1
del blabla~1.jpg then enter
In fact, you just need to (to simplify) delete the file by saying its true name which is in the 8+3 format
since it exceeds 8 characters, you need to reduce it to 6 and add "~1" not forgetting the extension
There you go, hoping to have helped some people, I say goodbye!
This is the option that allows you to display short names in the cmd: you can also type the command "dir /X" when you are positioned in the folder, and all short names (with the ~1) will be displayed. To avoid copying and pasting the ~, you can also type Alt+Gr+2 to "activate" the ~, and when you then type 1, it will display as "~1" (more clearly, "Alt.Gr+2" then "1" and it's done).
Hello,
I managed to solve this problem by using Filezilla ... as my explorer. I know that Filezilla is an FTP transfer software, but it turns out that it renames long files without any issue while the explorer refuses to do so. That's it.
I managed to solve this problem by using Filezilla ... as my explorer. I know that Filezilla is an FTP transfer software, but it turns out that it renames long files without any issue while the explorer refuses to do so. That's it.
I tried all the suggested methods without success, except for FileZilla, which worked without any issues. You click on rename and the miracle happens.
I have a little trick that I found after two days
a file renamed itself with lots of wwww and it was impossible to delete because Windows Explorer would crash when right-clicking
I renamed it by renaming other random files in a batch in association with this one
then deletion was possible
;)
aspirin was discovered by chance, now I understand why.....
a file renamed itself with lots of wwww and it was impossible to delete because Windows Explorer would crash when right-clicking
I renamed it by renaming other random files in a batch in association with this one
then deletion was possible
;)
aspirin was discovered by chance, now I understand why.....
Hello,
I had the same problem with a super annoying directory structure, like thirty folders and subfolders that I couldn't delete.
By using Filezilla, I renamed each folder and subfolder to a single letter and then I was able to delete the entire structure.
I had the same problem with a super annoying directory structure, like thirty folders and subfolders that I couldn't delete.
By using Filezilla, I renamed each folder and subfolder to a single letter and then I was able to delete the entire structure.
Use Unlocker, very effective. After installation, right-click on the desired file, choose Unlocker, then select the desired action in the dialog box that will appear. It's simple and effective.
+1 awesome this software!! http://www.osmstudios.com/projects/path-too-long
... after trying more than 10 solutions that didn't work, this piece of software fixed the problem in 30 seconds... download included.
(Windows 8.1 and an image file with a name that is too long)
... after trying more than 10 solutions that didn't work, this piece of software fixed the problem in 30 seconds... download included.
(Windows 8.1 and an image file with a name that is too long)
Microsoft provides a fix for this https://support.microsoft.com/fr-fr/help/2891362/a-file-copy-operation-fails-when-files-or-folders-have-long-paths-in-w
Yeah, but the number of characters in Windows Explorer is not modified as a result, so we in Tech Support for businesses prefer to connect a new network drive pointing as close as possible to the file in question. So if your file is located at S: \\abc\abc\abc\abc\.....\abc\abc\abc.xlsx or .docx or other. We connect a new network drive, for example Z, which points as close as possible to the problem. It's official that you need to write the correct server name instead of the letter assigned to it. For example, if the server is called \\s16r024a\.. Finally, everything you see in the left pane when you look at your relevant network drive. After that, all that’s left is to connect the network drive and all the characters in the path that you entered when you linked the new network drive are not taken into account. Yes, okay for Mr. and Mrs. Everybody, renaming folder and file names is less complicated, but if it’s a company and it has a specific naming convention to follow, there’s not much you can do.. Unless you change the folder structuring rules on their servers.
- 1
- 2
Suivant
I did what Phil said, renamed the folder, and now Windows deletes everything without a problem...
Thanks for the simple tip, Phil.