I have a folder on my E:\ that was created using the CYGWIN compiling and unix emulation program. I have long since deleted the stuff involved, but I cannot delete the folder it was stored in. The ONLY files that remain are linking files, nothing more. I have been able to delete all the other files and folders. Closing explorer.exe doesn't help. Attributes wont change anythign. Shift+delete doesn't do anything either. I'm unable to move it from one drive to another, but _I CAN_ rename it and move it around on the same disk it is on. cacls wont change the permissions with an access is denied error ~_~. SYSTEM level privilages don't do anything either.
E:\>del cygwin64 /F
E:\cygwin64\*, Are you sure (Y/N)? y
Folder is still present after this.
del e:\cygwin64 /F
rmdir /S e:\cygwin64
rd /S e:\cygwin64
attrib -h -r -a -s e:\cygwin64 /s /d <-- doesnt matter what the privs are, still 'ACCESS IS DENIED!' -_-
e:\cygwin64\usr\X11R6\lib\X11\xinit.lnk - Access is denied.
e:\cygwin64\usr\X11R6\lib\X11\xkb.lnk - Access is denied.
e:\cygwin64\usr\X11R6\lib\X11\xserver.lnk - Access is denied.
e:\cygwin64\usr\X11R6\lib\X11\xsm.lnk - Access is denied.
The folder just sits there, like its mocking me in all its dark and sinister glory. I WOULD backup and format, BUT since its a 250 gig disk with 87% use, I don't see that as a time-efficient route. Any help is appreciated guys 'n gals, as frankly, I am STUMPED.
AMD Athlon 3800+ X2
DFI SLI-DR NF4
Enermax NoiseTaker 600W
1GB Corsair 2225 1T DDR400
1x EVGA nVidia GeForce 6600GT (No SLI, yet.)
1x 80GB WD Caviar 8mb/7200rpm
Windows 2003 Standard Server
Want to enjoy fewer advertisements and more features? Click here to become a Hardware Analysis registered user.
I have this program called Unlocker that is just for that ocassion. It pops up whenever you get the message that says"This file can't be deleted ...." (something like that.)
Handy little tool.
Everything I write is Sarcasm.
I have been suffering from accessing, managing and even renaming files that have more than 255 characters over a long time. I have tried various ways but failed. Then I have searched this problem in internet. Then I have found a solution. This software is very easy to use. Named Long path Tool. To use the program all you need to do is to download this program online and save all the settings to your computer. This program is compatible with Windows NT, 2000, XP, Vista and Windows 7. you can find it from longpathtool(dot)com
The problem can be solved simply by downloading the software - Unlocker. It is available for free. You can unlock the folder, kill all the processes which are using the folder and delete it. This software will help you to delete any locked file / folder. Even some files / folders which cannot be deleted during windows running can be set to delete during next boot with this software.
Do you have error messages?, like :
Path too long
Error cannot delete file: cannot read from source file or disk
Cannot delete file: Access is denied
There has been a sharing violation.
Cannot delete file or folder The file name you specified is not valid or too long. Specify a different file name.
The source or destination file may be in use.
The file is in use by another program or user.
Error Deleting File or Folder
Make sure the disk is not full or write-protected and that the file is not currently in use.
Error Copying File or Folder.
Cannot remove folder.
The filename or extension is too long.
Path too deep.
Destination Path Too Long.
Could not find this item.
Filename is not valid.
The file could not be accessed.
The path you entered, is too long. Enter a shorter path.
File Name could not be found. Check the spelling of the filename, and verify that the file location is correct.
Although this post is ways too old, but I still many people (like me) visited here for the same problem.
First, I would like to state it out, that all the Unlocker and Long Path Tool method did not work for me. Unlocker mostly because it hanged every time I tried, and Long Path Tool because it asked for a Serial Key, and I am not interested in spending money on stupid things.
Second, I found the "code" method, which told me to type some stupid codes into Cygwin and CMD. It did not work, mainly because "cygwin.bat" was no longer working on my PC. Not even reinstalling it was helping. I could not make the rights towards myself like that.
So I used my own brain. i am not even sure of what I did, I just kept trying till I succeeded.
1- I right-clicked it and opened up the Properties. I clicked the Security tab, to find that I could not change the permissions here (I could not grant myself full control).
2- Clicked "Advanced" and then in the "Owner" tab, I clicked my own account and then checked some box "Replace owner...". Clicked Apply. I could not grant full control still.
3- Went to Permissions tab. Clicked on my account name, and then ticked both boxes below, and then clicked Apply.
Finally, I granted all accounts full access from the Security tab. Then I deleted the folder.
That folder was taking 4 GB of space from my HDD! Phew!