how can I delete this file

  • Thread starter Thread starter Juco
  • Start date Start date
J

Juco

win xp pro.

I have a HTML file that I want to delete but get the message "access denied"
I am the PC administrator and I have tried various settings on the folder it
is in but still cannot delete it. I know its probably me as I am never quite
sure how to set security on folders etc.

help please
thanks
 
Logout and re-login to release the current lock on the file as might be
currently in use by IE/some application.
 
Try to take ownership per the following article.
308421 HOW TO: Take Ownership of a File or Folder in Windows XP
http://support.microsoft.com/?id=308421

Access denied errors type errors can also appear because the file maybe in
use by another process.

IBTerry [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.
 
I have tried log in/out but this doesn`t work.

I have tried taking ownership and this still won`t allow delete.

It is an old HTLM log file from a programme thats not in use anymore.

Any other ideas on how to delete?

Juco
 
I have tried log in/out but this doesn`t work.

I have tried taking ownership and this still won`t allow delete.

It is an old HTLM log file from a programme thats not in use anymore.

Any other ideas on how to delete?

Login as Administrator, open a command prompt and delete it the old
fashioned DOS way.
 
Could some one please explain `how to` delete the dos way thanks

Login as Admin, open a Command Prompt (from the Start menu), change to the
directory where the file is located. Eg.

cd c:\Documents and Settings\Username\etc\

Then delete the file with the del command. Eg.

del undeletablefile.htm
 
If that doesn't work, try "attrib -r -s -h undeletablefile.htm", then try
the del command again.

If that doesn't work, it's likely that some app has an open handle to the
file. Even if you don't know what's holding the handle, you should be able
to rename the file then reboot to force the handle closed. After you boot
up again, you should be able to delete the file.
 
If the file is giving you that much trouble, use command promt to delete the file,however firstly go to task manager, click on explorer.exe and end the process. Failing that boot into safe mode and try it again.
 
Back
Top