Can't get a directory to delete from command prompt
From: John N (anonymous_at_discussions.microsoft.com)
Date: 03/27/04
- Next message: Paul R. Sadowski: "Re: Can't get a directory to delete from command prompt"
- Previous message: Mark V: "Re: Needed a command to stop startup running program"
- In reply to: COC: "Can't get a directory to delete from command prompt"
- Next in thread: Paul R. Sadowski: "Re: Can't get a directory to delete from command prompt"
- Reply: Paul R. Sadowski: "Re: Can't get a directory to delete from command prompt"
- Reply: Gary Smith: "Re: Can't get a directory to delete from command prompt"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 27 Mar 2004 07:08:02 -0800
Hi
Thanks for your suggestion. I tried your solution and
found a deeper problem. There is a hidden directory as
this:
P:\Restore 1-10-2003\system volume information\
I can path to it, but it won't let me in, "access
denied". There must be some files in there that the
system think are in use or something.
I can't access this sub directory from a safe mode either.
I researched and found the MoveFileEx command, but cannot
seem to come up with the exact syntax for the command to
work. I think I need to delete the files from the "system
volume information" directory first, and then the
directory according to the literature on it. But at this
point, I don't know if there might even be more sub
directories too.
If you could give me the exact syntax based upon the
information given, that would be great!
Or, any further help of any kind would be appreciated.
Thanks,
John
>-----Original Message-----
>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
>
>
>
>.
>
- Next message: Paul R. Sadowski: "Re: Can't get a directory to delete from command prompt"
- Previous message: Mark V: "Re: Needed a command to stop startup running program"
- In reply to: COC: "Can't get a directory to delete from command prompt"
- Next in thread: Paul R. Sadowski: "Re: Can't get a directory to delete from command prompt"
- Reply: Paul R. Sadowski: "Re: Can't get a directory to delete from command prompt"
- Reply: Gary Smith: "Re: Can't get a directory to delete from command prompt"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|