Can't get a directory to delete from command prompt

From: COC (anonymous_at_discussions.microsoft.com)
Date: 03/26/04


Date: Thu, 25 Mar 2004 22:34:01 -0800

I run Windows 2000 Server Professional. Over a year ago,
I needed to do a restore of system files due to a virus.
I inadvertantly started to restore the system files to a
new directory (created during the restore). The original
restore was aborted and a subsequent restore was
successful to the root drive, and the system works fine.

Now when I try to delete the unwanted directory, it says
that some of the files in it may be in use, and won't let
me. (To the best of my knowledge, the directory is empty,
unless there is a hidden file in there. But in the view
of the directory, I set it to show all files hidden or
not, and none show up.) So I booted into a safe mode and
tried again. Same thing, would not let me delete it. So
I booted into a command prompt mode. (Not sure this is
really a DOS mode or not, a true DOS mode option was not
given in the boot process.) So now, when I try to delete
the directory from a command line, it says that I have a
bad syntax.

The name of the directory is:

p:\Restore 1-10-2003

Exactly that, with the spaces, dashes, etc.

So I try to delete the directory as follows:

p:\rd Restore 1-10-2003, also tried p:\rmdir Restore 1-10-
2003, and finally tried p:\deltree Restore 1-10-2003

But then it comes up with the syntax error each time, or
can't find specified file. I can path to the directory
and open it, and it shows nothing inside, so DOS does
recognize it with certain commands.

Any ideas how I can delete this directory?

Thanks



Relevant Pages

  • Cant get a directory to delete from command prompt
    ... I researched and found the MoveFileEx command, ... If you could give me the exact syntax based upon the ... >I needed to do a restore of system files due to a virus. ... >really a DOS mode or not, a true DOS mode option was not ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Keep getting error message: windows explorer needs to close?
    ... If "System Restore" doesn't cure your problem then try ... restoring your System files using a small command on your ... If you have access to a FULL version CD of Windows XP you ... any corrupt system files using scannow sfc. ...
    (microsoft.public.windowsxp.general)
  • Re: Can I save my system files on a DVD?
    ... as an excellent system backup (or restore) ... If your Dell is like some other Dells, as a last recourse, there is ... the system files) I'm wondering if and how I can save the system files? ... it on a DVD. ...
    (microsoft.public.windowsxp.general)
  • Re: Can I save my system files on a DVD?
    ... as an excellent system backup (or restore) ... If your Dell is like some other Dells, as a last recourse, there is ... the system files) I'm wondering if and how I can save the system files? ... it on a DVD. ...
    (microsoft.public.windowsxp.general)
  • Re: Cant get a directory to delete from command prompt
    ... > I needed to do a restore of system files due to a virus. ... > I booted into a command prompt mode. ... > really a DOS mode or not, a true DOS mode option was not ...
    (microsoft.public.win2000.cmdprompt.admin)