Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I created directories and files as you see here with a java code by mistake:

 D:\...\storages\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\asd\assets\1\Back-Up\2011_0~1\Resources\ some files here.

and now I am not able to delete them. I got the error

The source file name(s) are larger than is supported by the file system. Try moving to a location which has a shorter path name, or try renaming to shorter name(s) before attempting this operation."

The fileassassin couldn't see the files with file Explorer window and the unlocker program lost the responsibility after a while. Both didn't solve the problem. Do you have another idea ?

I use Windows 7 Professional.

share|improve this question

migrated from stackoverflow.com Oct 14 '11 at 16:09

This question came from our site for professional and enthusiast programmers.

2 Answers 2

Use robocopy.

robocopy *c:\an_empty_directory* *c:\base_of_nested* /purge

share|improve this answer
    
do u mean robocopy D:1\ D:\...\storages\ D:1\ an empty directory and "storages" has all nested directories. i tried like that and it was doing something infinitely. how much time would it take? 10 mins? –  msaldirici Oct 17 '11 at 8:16
    
No, your empty directory is the source. and d:\1 is the base of nested. The purge switch basically deletes anything in the target that isn't in the source. If you specify an empty source, then robocopy deletes everything in the target, which is the nested directories.* If you do it the **other way around, it just copies all the nested folders. –  surfasb Oct 17 '11 at 10:30
    
i have an empty directory as "D:\storages" and nested ones under "D:\...\storages" it goes "1\1\1\1\1..." in the "D:\...\storages" and my command is like that " robocopy D:storages D:\...\storages " but it didnt work anyway. –  msaldirici Oct 17 '11 at 12:05

download this file from this given url, install this in your machine and do right click on file or directory -> select unlocker option -> take any action that your wants.

http://www.softpedia.com/get/System/System-Miscellaneous/Unlocker.shtml

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.