Please register or login. There are 0 registered and 900 anonymous users currently online. Current bandwidth usage: 326.30 kbit/s September 22 - 12:28am EDT 
Hardware Analysis
      
Forums Product Prices
  Contents 
 
 

  Latest Topics 
 

More >>
 

    
 
 

  You Are Here: 
 
/ Forums / Hard Drives /
 

  Cannot delete folder, Access is denied :( 
 
 Author 
 Date Written 
 Tools 
Tim Mar 19, 2005, 06:44pm EST Report Abuse
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.

Failed commands:

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. :)

Tim


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.
Bungle Mar 19, 2005, 06:52pm EST Report Abuse
>> Re: Cannot delete folder, Access is denied :(
if you have a spare HD you can boot to that one and delete the file that way.

Core i7 4770K @ 4.4GHz | Corsair H110 | Gigabyte GA-Z87X-UD5H | 32GB 1866MHz Corsair Vengeance
2x EVGA GTX 780 SLI | 256GB OCZ Vector SSD | 4TB Hitachi 7K4000
Corsair AX1200 PSU | Corsair 650D | Windows 7 Ultimate x64
Tim Mar 19, 2005, 07:04pm EST Report Abuse
>> Re: Cannot delete folder, Access is denied :(
Funny thing.. I hadn't thought of that... I suppose I will do just that, as I need to resize my boot partition anyway :)

Wish me luck XD

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
OCGW Mar 19, 2005, 09:34pm EST Report Abuse
>> Re: Cannot delete folder, Access is denied :(
1) startup in safe mode & delete, or

2) run a search for the file, & delete from the search results window, or

3) right click on the file/ properties/ uncheck read only, then delete, or

4) startup w/ emergency startup (boot) disc's & delete file. or

5) There is a way to do it from command prompt start/run/cmd,, but I don't remember the command line for deleting a file, somebody help me out w/ this

OCGW

PEACE

Steve Vickers Mar 19, 2005, 10:54pm EST Report Abuse
>> Re: Cannot delete folder, Access is denied :(
regedit the file off your system...simple search and destroy

Asus A8N32-SLI DELUXE MOBO w/AMD 64 4000+ CPU
(2)BFG 7800 GTX OC 256 DDR3 GPU PCI-E
4 Gigs Corsair CMX1024-3500LLPRO
160 Gig Maxtor Diamond SATA 7200 rpm
160 Gig Maxtor Diamond SATA 7200 rpm
2 Dell E193FP 19" LCD's
Memorex DVD/CD R/W
Memorex CD/RW
brian pope Mar 19, 2005, 11:27pm EST Report Abuse
>> Re: Cannot delete folder, Access is denied :(
If you can't delete or rename the file in safe mode see if you can put it into a Zipfile while in safe mode, then you'll be able to delete it anytime anywhere.




Neil Charkow Dec 16, 2007, 03:14am EST Report Abuse
>> Re: Cannot delete folder, Access is denied :(
Use regedit to modify the REG_SZ entry from ,,5 to ,,4 or basically from 5 (access denied) to 4 (access permitted).

I'm not an expert by any exageration on regedit but it worked for me.

Try at your own peril and remember to backup your registry (set a restore point) BEFORE touching your registry.

adam Dec 16, 2007, 03:35am EST Report Abuse
>> Re: Cannot delete folder, Access is denied :(
lol more then a year old but back from the dead I see.

AMD 6000+ @ 3.3 Ghz
Corsair XMS 2 - 2 gig DDR 2 800 @ 880 4 4 4 12 2.1 volts
8800 GTX KO @ 630/1575/2106
vista home premium x64
Enermax 650 watt 39 amp 12+ rails PSU
320 gig sata 2 300 mb 16 meg cache
2 gig 200x flash in readyboost
Gerritt Dec 16, 2007, 11:55pm EST Report Abuse
>> Re: Cannot delete folder, Access is denied :(
Well in Vista, you'd want to right click the CLI icon and select "run as administrator". Then it'd work.

Gerritt

Ad Astra Per Aspera
(A rough road leads to the Stars)
We all know what we know, and everyone else knows we are wrong.
System Specifications in BIO
Afrow UK Dec 17, 2007, 08:28am EST Report Abuse
>> Re: Cannot delete folder, Access is denied :(
Could just be NTFS file permissions assuming it is an NTFS volume.
I have seen folders get locked perminently though. You need to delete them on reboot (NSIS serves well for this).

Stu

I like: Programming, Gym, University
Music: House, Dubstep, D&B, Trance, Metal
Meats_Of_Evil Dec 19, 2007, 07:08pm EST Report Abuse
>> Re: Cannot delete folder, Access is denied :(
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.)
Link:
http://ccollomb.free.fr/unlocker/

Handy little tool.

-------------------------------------------------------------------------------------------------------------------------
Everything I write is Sarcasm.
Detar Trated May 09, 2010, 08:05am EDT Report Abuse
>> Re: Cannot delete folder, Access is denied :(
Thanks for the Unlocker tip! :) It woiked!... i think...better than anything I can think of anyways...

I wanted to do it the "hard" way.... :P

josh reen Mar 05, 2012, 12:04pm EST Report Abuse
>> Long Path Tool
I have used Long Path Tool in this situation and it helped me easily and quickly.
Get this tool from here. http://longpathtool.com/

Daniel Fird Mar 08, 2012, 05:20am EST Report Abuse
>> Re: Cannot delete folder, Access is denied :(
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

Hit Machine Mar 08, 2012, 01:18pm EST Report Abuse
>> Re: Cannot delete folder, Access is denied :(
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.

Danteskasas fb Mar 26, 2012, 09:30am EDT Report Abuse
>> Re: Cannot delete folder, Access is denied :(

Gabriel Nara Nov 19, 2012, 10:33am EST Report Abuse
>> Re: Cannot delete folder, Access is denied :(
It's similar than http://PathTooDeep.com ?

Xavier UK Aug 02, 2013, 12:16pm EDT Report Abuse
>> Re: Cannot delete folder, Access is denied :(
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!

gregory gabriella Oct 02, 2015, 05:43am EDT Report Abuse
>> Re: Cannot delete folder, Access is denied :(
I am using a software called Long Path Tool for such errors and it is working like charm, i have no problems in copying or extracting anything anywhere.:)

landon D Jul 23, 2016, 07:17am EDT Report Abuse
>> Re: Cannot delete folder, Access is denied :(
I would suggest you to try out Long Path Tool.



 

    
 
 

  Topic Tools 
 
RSS UpdatesRSS Updates
 

  Related Articles 
 
 

  Newsletter 
 
A weekly newsletter featuring an editorial and a roundup of the latest articles, news and other interesting topics.

Please enter your email address below and click Subscribe.