[strange bug] File not found

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

bobby
Very strange... I got such files multiple times on my computer, and this command always worked well...

icfu
* will delete all(!) files in that directory, so beware...
Yes, but on the screenshot there was only one file in the directory. Using "*" guarantees, that every file, with any name will be processed. Specifying the dot-ending name may cause system to try to access the file without dot, as if there is no dot... or may not cause. But this needs experimenting, while "*" should work always - that's why I wrote it instead of exact name.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
bobby
Junior Member
Junior Member
Posts: 16
Joined: 2005-05-08, 07:10 UTC

Post by *bobby »

As I had scientific aproach to this subject ( :) ), before I've executed del command, I've put one more (normal) file into the folder, just to be sure that the del command affected the rigth folder.
That, second file was deleted, but the problematic one was stil there.

After that, I've made a button, as Sheepdog recommended, changed the view to 8.3 in TC, and deleted the problematic file using F8.

Now, I don't have the problematic file there, so I can't make further experiments.

Seems that using del command from the XP console uses long names, so del didn't affected the problematic file.
Only solution was using 8.3 names from TC.

The file was in the folder for months, so I can't remember anymore how I got it.
I'v reported this as a bug, because the file was only viewable in TC, so I was thinking that TC somehow got something wrong readed from partition table.

As I can see now, it isn't a TC bug.
Thanks guys, this file was like a moskito: nothing important, but annoying...
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2bobby
Now, I don't have the problematic file there, so I can't make further experiments.
You may use the above linked tool to create some more "nice" files.
Only solution was using 8.3 names from TC.
I guess that using the extended syntax (\\?\) will do the job as well.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

This compliment to EvilTouch should delete those bastards. Full pathname required as parameter:
www.lefteous.de/tc/archives/evildelete/evildelete.zip

Code: Select all

#include <windows.h>
#include <strsafe.h>

int APIENTRY wWinMain(HINSTANCE, HINSTANCE, wchar_t* lpCmdLine,int)
{
	const int MAX_NTFS_PATH = 0x7FFF;
	wchar_t fileName[MAX_NTFS_PATH] = {0};
	StringCchCopyW (fileName, MAX_NTFS_PATH, L"\\\\\?\\");
	StringCchCatW (fileName, MAX_NTFS_PATH, lpCmdLine);
	DeleteFileW (fileName);
    return 0;
}
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

2icfu
icfu wrote:

Code: Select all

command: %comspec% /c
parameter: del \\?\%P%N
Where can I find information 'bout this syntax and what exactly does it mean (or inverse)?
I refer to the del\\? thingy.
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

This account is for sale
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Hey icfu, you're sooo coool.

thanks

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Post Reply