Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

weberm (Programmer) (OP)
26 Sep 06 10:33
I recently discovered some files on my secondary hard drive which had become corrupted and needed to be deleted, however, when I try to delete them, I get a "Cannot delete file name: access is denied". I've poked around a bit online but none of the suggestions there are working. This is what I've tried thus far:
  • Open the Task Manager to kill processes (none found).
  • Delete the file in a DOS window.
  • Reboot in 'safe mode' and delete the files.
  • Delete the file while holding the SHIFT key.
  • Installed Unlock but it didn't find anything wrong.
Does anyone have any more suggestions? Could this be caused by spyware/trojans?
Diancecht (Programmer)
26 Sep 06 10:54
ASG0856 (Programmer)
26 Sep 06 10:58
You could try booting to DOS (press and hold F8 at power on till the menu appears).  Select Dos, at the C:\ prompt change to your secondary drive and do a directory search and listing.  If it finds them, try deleting at this point.
You haven't specified what the files are or what you use the drive for.  If you have important files that can be backed up to CD or copied to you primary drive, you could then reformat the drive.
ASG
gbaughma (IS/IT--Management)
26 Sep 06 14:51
Go to a command prompt (start --> run --> cmd)

CD to the folder with the file

enter:
attrib -a -h -r -s filename.ext

del filename.ext

Just my 2¢

"In order to start solving a problem, one must first identify its owner." --Me
--Greg  http://parallel.tzo.com

linney (TechnicalUser)
27 Sep 06 2:59
Why do you think the files are corrupted?  Do you have access permissions for these files?

HOW TO: Take Ownership of a File or Folder in Windows XP (Q308421)
http://support.microsoft.com/support/kb/articles/q308/4/21.asp

Error Message: "Access Is Denied" When You Try to Open NTFS File System Folders
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q823306#appliesto
weberm (Programmer) (OP)
27 Sep 06 7:05

Quote (thread779-1182368):

I find 'Unlocker' to be a quick and easy solution to deleting locked files and folders.
Unlocker didn't work either. It returned an "access is denied" message and and didn't delete the files on bootup.

Quote (thread779-1182368):

You may want to download Killbox and delete it with this program:

www.bleepingcomputer.com/files/killbox.php
Oddly enough, this program told me "This file does not seem to exist".

Quote (ASG0856):

You could try booting to DOS (press and hold F8 at power on till the menu appears).  Select Dos, at the C:\ prompt change to your secondary drive and do a directory search and listing.  If it finds them, try deleting at this point.
I tried doing that last night and got an "Access denied" message for attrib -r, erase, and del. There's about half a dozen documents and pictures on the hard drive I use for data storage which have this problem. I discovered them while burning a backup CD and the files could not be opened. When I tried to replace the files from an older backup, but I couldn't overwrite them.

I ran CHKDSK on the drive from a DOS session and it found some lost strings so I ran it with the "/F" flag and I think it ran OK, but I am still unable to touch these files. ponder
TheLad (TechnicalUser)
27 Sep 06 7:35
Are the files in a directory structure with a long name?  Sometimes this can happen if the directory path is too long.  I think the limit is around 255 characters but it is often possible to exceed this.  If this is the case, try shortening the directory path and try deleting the files again.

--------------------------------------
"Insert funny comment in here!"
--------------------------------------

weberm (Programmer) (OP)
1 Dec 06 13:19

Quote (TheLad):

Are the files in a directory structure with a long name?  Sometimes this can happen if the directory path is too long.  I think the limit is around 255 characters but it is often possible to exceed this.  If this is the case, try shortening the directory path and try deleting the files again.
I don't think the names are too long. There's other files in the same directory which are fine. At this point I can only guess that somethng "hiccuped" and corrupted their entry in the FAT...
linney (TechnicalUser)
1 Dec 06 14:20
What are the file names which you can't delete?  Can you supply the Property details as to size etc.  Is the file system NTFS?  Can you supply the full path details.  Are there any Deny Permissions set on these files?

Have you run ChkDsk /r via the right-click your Drive icon/ Properties/ Tools/ Error Checking.  Select both boxes.
cdogg (TechnicalUser)
2 Dec 06 0:37
1.  Right click the folder/file in question.  
2.  Make sure Read-only is unchecked.
3.  Go to the Permissions tab (which is only there if your file system is NTFS) and make sure your WinXP username is listed (add it if necessary)
4.  Give your username full control
5.  Hit OK

You should be able to delete the folder/files afterwards.  I apologize if this was already suggested above.  I just did a quick scan and didn't see that it was tried.

~cdogg
"Insanity:  doing the same thing over and over again and expecting different results." - Albert Einstein
    For general rules and guidelines to get better answers, click here:  FAQ219-2884

netuserfr (IS/IT--Management)
20 Dec 06 17:42
Hello,

i am posting here as my problem is quiet same.

Here is problem : I have Recently 2 OS running on my laptop 1 XP Pro and other Vista Beta for some reason my boot menu disparead so i decided to delete all data regarding Vista as i dont use it and it taking alot of space on HD, the vista was installed on D drive, i was able to delete all data concerning User etc.. but I am unable to delete Windows folder and some folders in programme files folder. When ever i try to delete it i have an error message : Access is denied ..... I have used all method explain : Dr Delete , MoveonBoot , Unlocker etc.. also tried to boot in XP Command promt and even there i have same message. Cant Change attributes also i have an error message. I realy need the space it is taking 9 GB of my space. I cant format the drive as i have 40 GB of other data on it.

Thanks alot for all your help
linney (TechnicalUser)
20 Dec 06 22:40
netuserfr,

From XP try taking ownership of the Vista files and folders, any files that prove awkward and deny access try checking to see if the deny permission for the Everyone Group is checked (a common enough occurrence in Vista).

HOW TO: Take Ownership of a File or Folder in Windows XP (Q308421)
http://support.microsoft.com/support/kb/articles/q308/4/21.asp

Error Message: "Access Is Denied" When You Try to Open NTFS File System Folders
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q823306#appliesto

There is this you can look at too.

How To Reset Security Settings Back to the Defaults
http://support.microsoft.com/default.aspx?scid=313222#1
netuserfr (IS/IT--Management)
21 Dec 06 16:46
Thanks alot th problème was coming from ownership :)
weberm (Programmer) (OP)
4 Jan 07 7:20
Sorry for the lateness of this response.

Quote (linney):

What are the file names which you can't delete?  Can you supply the Property details as to size etc.  Is the file system NTFS?  Can you supply the full path details.  Are there any Deny Permissions set on these files?
Here's a couple file names:
D:\My Documents\My Pictures\allen_7.jpg
D:\My Documents\My eBooks\D & D\BONEWIZ.DOC

I checked the properties and they have the dates asscoiated with it and none of the boxes (Read-Only, Hidden,Archive) are checked. I did notice, however, that the Summary tab is greyed out with a "Summary properties unavailable for selected source" message. The disks on my PC are in FAT32 format. Oh yeah, I noticed when making CD and DVD backups a couple days ago that a couple more files are now doing this! surprise

Quote (linney):

Have you run ChkDsk /r via the right-click your Drive icon/ Properties/ Tools/ Error Checking.  Select both boxes.
I did this last night but the files were still doing the same thing.
Pleonasm (TechnicalUser)
4 Jan 07 10:15
The free MoveFile utility by Sysinternals ought to assist with this problem.

See:  http://www.microsoft.com/technet/sysinternals/FileAndDisk/pendmoves.mspx
edfair (TechnicalUser)
4 Jan 07 11:31
Can you copy them?  Either GUI or command line?
Once copied, if they did, can you remove the copy?
And if they copied, can you copy the copy back onto the original?
This shouldn't be a problem with the FAT, but rather a problem with the directory. Something like corruption in the attributes byte.
I would be curious if you could remove the folder that contains the subject files.
Before trying it move anything of value elsewhere.


Ed Fair
Give the wrong symptoms, get the wrong solutions.

linney (TechnicalUser)
4 Jan 07 13:32
The hard drive manufacturer will have free diagnostic software that will thoroughly check out the condition of the hard drive.

Have you thought about converting your drive to the NTFS (not reversible) then you can "play" with access permissions?

Converting FAT32 to NTFS in Windows
http://www.aumha.org/a/ntfscvt.htm

307881 - HOW TO: Convert a FAT16 or FAT32 Volume to NTFS in Windows XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;307881&FR=1&PA=1&SD=HSCH
firewolfrl (TechnicalUser)
4 Jan 07 16:37
By chance is your OS XP Home?
weberm (Programmer) (OP)
9 Jan 07 7:37

Quote (edfair ):

Can you copy them?  Either GUI or command line?
Once copied, if they did, can you remove the copy?
And if they copied, can you copy the copy back onto the original?
This shouldn't be a problem with the FAT, but rather a problem with the directory. Something like corruption in the attributes byte.
I would be curious if you could remove the folder that contains the subject files.
Before trying it move anything of value elsewhere.
I could not copy the files from either GUI or command line.
I tried deleting all the other files in the directory (I had backed them up to a CD earlier this week, excluding those files, which threw "cannot copy to CD" error messages) and then deleting the directory without any luck. I tried it again by rebooting in DOS mode (as administrator) and it still complained about the directory not being empty (Using *.* within the directory fared no better). Oh yeah, I thought that perhaps "D & D" in the path might be causing the problem for one the files and renamed it to "D", but that didn't help either.

Quote (linney):

Have you thought about converting your drive to the NTFS (not reversible) then you can "play" with access permissions?
I am seriously contemplating that but want to do some more research.

Quote (firewolfrl):

By chance is your OS XP Home?
Yes. I upgraded my PC from Win 98 to XP Home.
firewolfrl (TechnicalUser)
9 Jan 07 12:04
Ahhhhhh!

that helps ALOT


XP home has some security tabs disabled to take ownership

First and formost....get rid of the the FAT32....NTFS is way more stable...and you can take security of the files much easier. As I saw above linney has posted the link for the conversion....

The Security tab link does not work for FAT32/FAT drives but works fine with NTFS drives

these links give your the Security tab fix
http://www.dougknox.com/xp/tips/xp_home_sectab.htm
http://www.mydigitallife.info/2006/08/03/enable-and-display-security-tab-in-windows-xp-home-edition/


this link gives you the software to manage your account profiles and create groups in XP home
http://www.snapfiles.com/get/accountview.html

the side benefit is you can take ownership of another profile and assign your primary profile as Administrator only

its almost as good as owning XP pro after those programs are installed

now for your original problem  this piece of software is hands down  the best piece of software I have ever found to remove nasty unremovable files...I have found it to work even better then Unlocker
Delete FXP Files
http://www.jrtwine.com/Products/DelFXPFiles/

though the free edition is gone it is well worth the price
weberm (Programmer) (OP)
1 Mar 07 6:56
Hello again! Nothing else worked, including this great utility: http://www.pcinspector.de/file_recovery/uk/welcome.htm

However, on a hunch, I booted my PC using a Norton SystemWorks 2002 CD (in Win98 DOS mode) and from there, manually deleted the files (using the 8+3 format names).

All fixed!

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close