Annoyances.org
Home » Windows XP Discussion Forum » Message 1043455550 Search | Help | Home
  
Tip: Run a free scan for common Windows errors ad

re: It's possible!
Friday, January 24, 2003 at 4:45 pm
Windows XP Annoyances Discussion Forum
Posted by RobinWood (1 messages posted)


"No pain", but this method won't work in most difficult cases... like invalid files 
names, folders within recycle bin (harckers sometimes use Norton recycler folder 
to store files!), or unwanted files uploaded on your FTP server.

After a few hours I found a solution (I have win XP and two NTFS partitions). It 
should work in a few very annoying cases. At first, I've tried many things using 
the command (dos-like) windows of XP, then using safe mode, using rename, move, replace, 
check disk, ending Explorer.exe, rebooting, even changing permissions (owner), using 
cacls.exe, rather files utilities, etc. all had no effect. Nothing succeeded to remove 
strange files within my recycle bin. I could move them, but never delete them. At 
last I found an article on Microsoft support site. I had many file (using 2 GB of 
my Harddrive!) with invalid names and extension (something like 00024590.), and even 
no way to change files properties. Each time I tried to remove them I got the famous 
"Cannot find the specified file" or "invalid path", "cannot delete"... messages.
If you are in the same case, try this:
If the files you want to delete are on c:\temp, go click on Run in the Start Menu 
and launch the command windows (type: cmd). Then type exactly:
del "\\?\c:\temp\FILENAME.XXX" (XXX = file extension)
Confirm delete by YES. If you have many files in the same directory or if you have 
no valid file extension, just type:
del "\\?\c:\temp\*.*"
(It works! but don't forge the " ")
There was one file that I could not delete. It looked exactly like others files but 
I cannot delete it. Fortunatly, I found an option to delete it (it's a problem related 
with 8.3 File names on NTFS). Just add this command option:
del "\\?\c:\temp\FILENAME.XXX" /a
or, if you have a few file or files with invalid extension:
del "\\?\c:\temp\*.*" /a
It should be OK. Then, you can remove the empty folder just using "rd" command (ex: 
c:\rd temp)
I cannot explain what is the relation with "8.3 Files names" on NTFS and "uneradicable 
files". But if this last option still not work, try to desactived "8.3 files names" 
(it's only a registry value to change, you can find this easily on the web, or use 
a tweak program, like Tweak-XP pro - then, reboot and try again!).
 
You can find more information on the Microsoft page, with a few others methods to 
delete unwanted files, depending on your problem:
http://support.microsoft.com/default.aspx?scid=kb;en-us;320081

Good luck !
PS: If it does not work, and to make sure quickly that your problem has no relation 
with windows permissions, type the command CACLS at the root of your HD, followed 
by the path of the directory containing the undeletable files. Example:
cacls c:\temp
If your computer name is BIGBOSS, your user name Robert, you should see (at least):
BIGBOSS\Robert: (OI) (CI) F
The "F" means you have full access. So, there is probably no problem with permissions. 
You can find more info about cacls.exe commands on the web.
 



On Wednesday, January 22, 2003 at 5:45 am, gold_archimedes wrote: >Haha, guys, I have discovered a method that works for some "undeletable" files. > > >Just create a text file (empty one) in another folder (other than the folder that >contains that particular file). >Rename the txt file to the name of the file that is not-removable. Then click and >drop the newly created and named file into the folder containing the stuborn file. > >This will overwrite the original file with the one you have just created. > >Well, for all the dummies out there, this is a clean-cut method. No need to learn >DOS prompt, no need to start with DOS mode.....no pain (unfortunately there will >always be pain with windows around). > >



Written in response to:
re: Cannot delete a file in XP (gold_archimedes: Wednesday, January 22, 2003 at 5:45 am)

Responses to this message:
*Your a living legend! (Robbie: Tuesday, May 20, 2003 at 11:13 am)
*Bravo! (jgirl: Wednesday, May 21, 2003 at 5:58 am)
*re: It's possible! (Mark Schacht: Saturday, August 2, 2003 at 5:07 am)
*uau (tartar: Monday, February 9, 2004 at 2:11 am)
*re: It's possible! (Steve C: Saturday, December 18, 2004 at 2:45 pm)
*re: It's possible! (Rick: Friday, February 11, 2005 at 3:45 am)

All messages in this thread [show all]
-Cannot delete a file in XP (Tony: Thu, Sep 5, 2002, 10:12 pm)
-re: Cannot delete a file in XP (troy: Thu, Sep 5, 2002, 10:38 pm)
-re: Cannot delete a file in XP (sreenivas: Fri, Sep 6, 2002, 12:47 am)
-re: Cannot delete a file in XP (Tony: Fri, Sep 6, 2002, 10:09 pm)
-re: Cannot delete a file in XP (js: Wed, Aug 6, 2003, 2:10 pm)
*Using my Network to crack this puppy (js: Wed, Aug 6, 2003, 2:29 pm)
-re: Cannot delete a file in XP (sreenivas: Sat, Sep 7, 2002, 10:01 pm)
-re: Cannot delete a file in XP (gold_archimedes: Wed, Jan 22, 2003, 5:45 am)
-re: It's possible! (RobinWood: Fri, Jan 24, 2003, 4:45 pm)
*Your a living legend! (Robbie: Tue, May 20, 2003, 11:13 am)
*Bravo! (jgirl: Wed, May 21, 2003, 5:58 am)
*re: It's possible! (Mark Schacht: Sat, Aug 2, 2003, 5:07 am)
-uau (tartar: Mon, Feb 9, 2004, 2:11 am)
-re: uau (electroguy: Tue, Aug 17, 2004, 8:36 pm)
*re: uau (ah-jay: Wed, Oct 17, 2007, 1:05 am)
*re: It's possible! (Steve C: Sat, Dec 18, 2004, 2:45 pm)
*re: It's possible! (Rick: Fri, Feb 11, 2005, 3:45 am)
-re: Cannot delete a file in XP (tartfromhell: Thu, May 22, 2003, 1:30 am)
-re: Cannot delete a file in XP (Lampje: Thu, May 22, 2003, 1:44 pm)
*re: Cannot delete a file in XP (Mnemonic: Thu, May 22, 2003, 4:30 pm)
*re: Cannot delete a file in XP (C Shackleton: Sun, Feb 1, 2004, 3:22 pm)
-re: Cannot delete a file in XP (Brian: Fri, May 30, 2003, 12:02 am)
-re: Cannot delete a file in XP (Bill Siris: Wed, Nov 4, 2009, 7:50 am)
*re: Cannot delete a file in XP (MartinM: Wed, Nov 4, 2009, 10:28 am)
*re: Cannot delete a file in XP (Jupiter102: Sat, Nov 21, 2009, 6:20 pm)
*re: Cannot delete a file in XP (Crono: Thu, Jun 19, 2003, 1:58 am)
*re: Cannot delete a file in XP (Imran: Sat, Jun 21, 2003, 11:41 am)
*re: Cannot delete a file in XP (simo: Mon, Jun 23, 2003, 9:02 am)
*!re: Cannot delete a file in XP! (Penguin Face: Sun, Aug 3, 2003, 3:06 pm)
-re: Cannot delete a file in XP (samuel: Sun, Jan 23, 2005, 2:11 am)
*re: Cannot delete a file in XP (JM: Tue, Feb 8, 2005, 10:50 am)
-re: Cannot delete a file in XP (Toestub: Mon, Nov 28, 2005, 8:30 pm)
-Cannot delete a folder structure in XP (Christin: Thu, Aug 16, 2007, 7:52 am)
-re: Cannot delete a folder structure in XP (Steve: Fri, Aug 24, 2007, 10:08 pm)
*re: Cannot delete a folder structure in XP (Steve: Fri, Aug 24, 2007, 10:32 pm)
*re: Cannot delete a file in XP (Mario: Mon, Aug 25, 2003, 7:39 am)
*re: Cannot delete a file in XP (Carlos: Sat, Aug 30, 2003, 9:13 am)
-re: Cannot delete a file in XP (alex: Sun, Jun 22, 2003, 11:10 am)
-re: Cannot delete a file in XP (blingbling: Sat, Jun 28, 2003, 7:16 am)
-re: Cannot delete a file in XP (mark: Sat, Jul 5, 2003, 12:00 pm)
-File deletion error - XP W98 *$#!! (Barrie J: Thu, Jul 10, 2003, 12:51 am)
-re: File deletion error - XP W98 *$#!! (Barrie J: Mon, Jul 14, 2003, 4:19 am)
-re: File deletion error - XP W98 *$#!! (Juan: Tue, Jul 15, 2003, 6:32 pm)
-re: File deletion error - XP W98 *$#!! (Barrie J: Wed, Jul 16, 2003, 1:18 am)
*re: File deletion error - XP W98 *$#!! (Juan: Fri, Jul 18, 2003, 4:56 pm)
-re: Cannot delete a file in XP (Antony: Sun, Jul 27, 2003, 12:04 am)
-re: Cannot delete a file in XP (Kerry Berg: Wed, Jul 30, 2003, 7:45 am)
-re: Cannot delete a file in XP (RevBlackie: Wed, Jul 30, 2003, 3:15 pm)
-re: Cannot delete a file in XP (Tobin: Thu, Jul 31, 2003, 1:30 pm)
-re: Cannot delete a file in XP (RevBlackie: Thu, Jul 31, 2003, 5:16 pm)
*re: Cannot delete a file in XP (Martijn: Wed, Aug 27, 2003, 6:44 am)
*re: Cannot delete a file in XP (Ken: Fri, Sep 5, 2003, 9:14 am)
*re: Cannot delete a file in XP (eNos: Wed, Jun 15, 2005, 3:14 pm)
*re: Cannot delete a file in XP (jose: Sun, Aug 31, 2003, 12:24 pm)
*re: Cannot delete a file in XP (sherman: Thu, Mar 10, 2005, 9:14 am)
Return to the Windows XP Discussion Forum


All content at Annoyances.org is Copyright © 1995-2009 Creative Elementtm All rights reserved.
Please do not plagiarize; redistributing these pages without permission is strictly prohibited.