PC Review


Reply
Thread Tools Rate Thread

Cannot delete file in Explorer; command line does not show the fil

 
 
HJStern
Guest
Posts: n/a
 
      28th Dec 2008
I have two files that I cannot delete. If the file shows up (see below) I
cannat delete it, and always get the error message: "Cannot delete file.
Access denied ...". I have already tried these approaches (with
Computeradministrator rights):

1. Delete in the Windows Explorer.

1. Unchecking the write protection in the fileproperties (access is denied
to change the properties).

2. Reboot the system and deleting the file as the first thing I do after
reboot.

3. Via command line. The file does not show up in the folder even if I type
"Attrib" in the respective folder.

4. Safe boot of windows.

Are there any windows-inherent solutions?

Are there any other solutions using some tools?

Thank you for the help.

 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      28th Dec 2008

"HJStern" <(E-Mail Removed)> wrote in message
news:7D149AC5-8EAD-4AC0-B2CD-(E-Mail Removed)...
>I have two files that I cannot delete. If the file shows up (see below) I
> cannat delete it, and always get the error message: "Cannot delete file.
> Access denied ...". I have already tried these approaches (with
> Computeradministrator rights):
>
> 1. Delete in the Windows Explorer.
>
> 1. Unchecking the write protection in the fileproperties (access is denied
> to change the properties).
>
> 2. Reboot the system and deleting the file as the first thing I do after
> reboot.
>
> 3. Via command line. The file does not show up in the folder even if I
> type
> "Attrib" in the respective folder.
>
> 4. Safe boot of windows.
>
> Are there any windows-inherent solutions?
>
> Are there any other solutions using some tools?
>
> Thank you for the help.
>


I get very suspicios when someone claims that Explorer shows a file but
attrib.exe doesn't. This is probably a case of being in the wrong folder.
The following command, when executed from a Command Prompt, will give you a
clue:
md "NameOfFile"{Enter} (in case the problem entity is a file)
cd > "NameOfFolder"{Enter} (in case the problem entity is a folder)
You must, of course, execute the above command from the parent folder of the
problem entity, not from C:\.


 
Reply With Quote
 
HeyBub
Guest
Posts: n/a
 
      28th Dec 2008
HJStern wrote:
> I have two files that I cannot delete. If the file shows up (see
> below) I cannat delete it, and always get the error message: "Cannot
> delete file. Access denied ...". I have already tried these
> approaches (with Computeradministrator rights):
>


What files?

XP is plenty smart. Some system files are undeletable. Some come back even
when you do delete them.


 
Reply With Quote
 
Big_Al
Guest
Posts: n/a
 
      28th Dec 2008
HJStern said this on 12/28/2008 5:11 AM:
> I have two files that I cannot delete. If the file shows up (see below) I
> cannat delete it, and always get the error message: "Cannot delete file.
> Access denied ...". I have already tried these approaches (with
> Computeradministrator rights):
>
> 1. Delete in the Windows Explorer.
>
> 1. Unchecking the write protection in the fileproperties (access is denied
> to change the properties).
>
> 2. Reboot the system and deleting the file as the first thing I do after
> reboot.
>
> 3. Via command line. The file does not show up in the folder even if I type
> "Attrib" in the respective folder.
>
> 4. Safe boot of windows.
>
> Are there any windows-inherent solutions?
>
> Are there any other solutions using some tools?
>
> Thank you for the help.
>


Run chkdsk c: /r And let it check on reboot. You may find that
your files or directory structures are corrupt. It will take time, but
watch it as it will report the files fixed as it goes.

I couldn't defrag and found out I had files on a bad spot on the drive.
I dropped the laptop a few weeks ago and I think the drive is on the
way out. But this moved the files. They were corrupted since they were
on bad spots, but at least now they could be repaired or deleted or
whatever. Luckily they were photos.
 
Reply With Quote
 
ju.c
Guest
Posts: n/a
 
      29th Dec 2008
These are the best apps for file deletion, all free.
(You can't delete a folder if you have it opened)

Unlocker 1.8.7 237 KB
Info: http://ccollomb.free.fr/unlocker/
Download: http://ccollomb.free.fr/unlocker/unlocker1.8.7.exe

KillBox 90 KB
Info: http://www.killbox.net/
Download: http://www.killbox.net/downloads/KillBox.exe

FileASSASSIN 1.06 163 KB
Info: http://www.malwarebytes.org/fileassassin.php
Download: http://www.malwarebytes.org/fa-setup.exe

DelinvFile - Delete Invalid Files and Folders
Info: http://www.purgeie.com/delinv/index.htm
Download: http://www.purgeie.com/dl/divfinst.exe


This is a trick to delete an undeletable file by restoring a file over it with a file
created with the same name using a drive imaging program.

Instructions:

1. Create a text file and write in it a couple of letters.
2. Save that file in your root drive (C: for example) with the
same exact name and extension as the file you want to delete.
3. Now make a backup your new file (I used Acronis True Image).
4. Open your backup program and restore the file you created to
the folder where the undeletable file is, overwriting it.
4. Now you can delete it!
5. Run chkdsk


ju.c


"HJStern" <(E-Mail Removed)> wrote in message news:7D149AC5-8EAD-4AC0-B2CD-(E-Mail Removed)...
> I have two files that I cannot delete. If the file shows up (see below) I
> cannat delete it, and always get the error message: "Cannot delete file.
> Access denied ...". I have already tried these approaches (with
> Computeradministrator rights):
>
> 1. Delete in the Windows Explorer.
>
> 1. Unchecking the write protection in the fileproperties (access is denied
> to change the properties).
>
> 2. Reboot the system and deleting the file as the first thing I do after
> reboot.
>
> 3. Via command line. The file does not show up in the folder even if I type
> "Attrib" in the respective folder.
>
> 4. Safe boot of windows.
>
> Are there any windows-inherent solutions?
>
> Are there any other solutions using some tools?
>
> Thank you for the help.
>

 
Reply With Quote
 
HJStern
Guest
Posts: n/a
 
      2nd Jan 2009


Thank you for all your help,

Pegasus: I used Unlocker to delete the files and cannot verify your
suggestion or what I said about the command prompt any mote. But, I am quite
sure the files did not show up using the command "dir" or "attrib" at the
command prompt being already in the respective folder.

HeyBub: Those files were on another drive, not drive holding the operating
system. They belonged to an old installation of Adobe Reader which is not in
use anymore.

Big_Al: I have tried your approach, but it did not help.

ju.c: I used unlocker to solve the problem

Thanks a lot for all the help
HJStern
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete print jobs from command line or batch file? Dave R. Microsoft Windows 2000 CMD Promt 5 16th Apr 2007 03:50 PM
show/hide mouse via command line BattleAngel444 Windows XP Embedded 2 19th Jul 2006 12:42 PM
File names not visible in Explorer or on command line NetPerson Windows XP Help 1 14th Mar 2006 10:17 AM
Is there a command line command to extract just the files within a .msi file. Lawrence Windows XP General 5 4th Nov 2004 04:27 AM
Windows Explorer command line switches (explorer.exe) Jason Windows XP General 1 21st May 2004 04:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:27 AM.