Hi, Lev.
Well, as I'm sure you know, there is no valid file named C:\Windows\d in
WinXP. I would be very interested to know what you see if you right-click
on that filename and click Properties. What is the date and time on the
file? I suspect that some kind of malware created it and your problem may
be somewhat bigger than just trying to delete a rogue file. :>(
But, assuming a simple deletion is all you need: Open a "DOS" window and
enter:
dir C:\windows\d* /x
The /x switch should show you the SFN (Short File Name, also known as the
8.3 filename) for the file that appears to be named "d". Every file has to
have a name that complies with the 8.3 filename rules, even if it also has a
LFN. And a filename need not really be long to be a Long File Name; if it
includes a space or other character that is not valid in MS-DOS, a SFN will
be created for it, even if it appears to be only a single character long.
Sometimes the dir /x command shows a quite unexpected SFN for what appears
to be a perfectly legitimate LFN. You might even find that there is a
non-printing leading character BEFORE the visible "d".
My system shows it by the dir command, but gives File Not Found on the del
command.
Perhaps the S (System) or R (Read-only) attribute is set, but not H
(Hidden). Enter: attrib d*.* to see all attributes of all files starting
with d. Or, just to brute-force all attributes away: attrib -r -h -s d*.*
Have you tried del /a? This should delete the file, even if it has some
attributes set.
And then there is always the good old Remove Directory command with the /s
switch. You don't really want to do this to your C:\Windows folder, but if
you can Move or otherwise isolate that problem file in a folder by itself,
then you can wipe out the whole folder, with all its contents, by entering:
rd <foldername> /s When it asks, say Yes, you're sure.
As always in a "DOS" window, type the command followed by /? to see a
mini-Help file listing the switches and parameters available with that
command: dir /?
Tell us exactly what you try and exactly what results you see.
RC