Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: DOS syntax

0 views
Skip to first unread message
Message has been deleted

NoSuch...@bigfoot.com

unread,
Jul 5, 2007, 9:35:48 PM7/5/07
to
Bart Bailey wrote:
> I'm trying to remove a folder and all contents from a drive,
> I was told to use this syntax in DOS under XP
> RMDIR C:\WINDOWS\folder /S
> but I get /S invalid switch
> if I don't add it I get the folder contains files warning
>
> anyone know what's a valid switch to accomplish this
> and recommended syntax?
> BTW: I'm not using the command prompt within windows,
> but actually booting to a C:\> prompt in DOS
>

Bart, try "help rmdir" and you'll get the following:

Removes (deletes) a directory.

RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path

/S Removes all directories and files in the specified directory
in addition to the directory itself. Used to remove a
directory
tree.

/Q Quiet mode, do not ask if ok to remove a directory tree with /S
===============

I think your problem is that you put the switch at the END of the
command, instead of the beginning, i.e.,

rmdir /s c:\windows\folder

Message has been deleted
0 new messages