Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > How to delete folder from the command prompt?

Reply
Thread Tools Display Modes

How to delete folder from the command prompt?

 
 
Jack
Guest
Posts: n/a

 
      03-07-2008
Hello,
In the old good days there was a 'deltree' command (DOS & Win98) to delete
folder with subfolders from the command line.
Now, I need that to do in Vista.
How to do that?
Jack


 
Reply With Quote
 
 
 
 
Jack
Guest
Posts: n/a

 
      03-07-2008
Forgot to add.
I am right now starring at command prompt produced by Vista DVD installation
disk in repair mode.
I have access to that DVD and to c:\Windows folder which is XP windows.
Jack

"Jack" <replyto@it> wrote in message
news:u9j$Ix$...
> Hello,
> In the old good days there was a 'deltree' command (DOS & Win98) to delete
> folder with subfolders from the command line.
> Now, I need that to do in Vista.
> How to do that?
> Jack
>



 
Reply With Quote
 
Keith Miller \(MVP\)
Guest
Posts: n/a

 
      03-07-2008
C:\Users\Keith>rd /?
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


--
Good Luck,

Keith
Microsoft MVP [Windows Shell/User]



"Jack" <replyto@it> wrote in message
news:%23a9uC0$...
> Forgot to add.
> I am right now starring at command prompt produced by Vista DVD
> installation disk in repair mode.
> I have access to that DVD and to c:\Windows folder which is XP windows.
> Jack
>
> "Jack" <replyto@it> wrote in message
> news:u9j$Ix$...
>> Hello,
>> In the old good days there was a 'deltree' command (DOS & Win98) to
>> delete folder with subfolders from the command line.
>> Now, I need that to do in Vista.
>> How to do that?
>> Jack
>>

>
>


 
Reply With Quote
 
R. C. White
Guest
Posts: n/a

 
      03-07-2008
Hi, Jack.

How about: rd /s

Rd is Remove Directory, of course, and the /s switch removes all the
subfolders, too. As usual in the Command Prompt window (which we old-timers
still call the "DOS window" even though we know it's not really DOS), type
the command followed by /? for what I call a mini-Help file that shows the
switches and parameters available with the command. Rd offers only a
couple: /s and /q.

It's a little surprising - to me, at least - that rd won't work if there are
files in the folder, but rd /s will.

RC
--
R. C. White, CPA
San Marcos, TX

Microsoft Windows MVP
(Running Windows Live Mail 2008 in Vista Ultimate x64 SP1)

"Jack" <replyto@it> wrote in message
news:u9j$Ix$...
> Hello,
> In the old good days there was a 'deltree' command (DOS & Win98) to delete
> folder with subfolders from the command line.
> Now, I need that to do in Vista.
> How to do that?
> Jack


 
Reply With Quote
 
Jack
Guest
Posts: n/a

 
      03-07-2008
That removes only empty folders!
Jack

" Keith Miller (MVP)" <> wrote in message
news:%23$...
> C:\Users\Keith>rd /?
> 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
>
>
> --
> Good Luck,
>
> Keith
> Microsoft MVP [Windows Shell/User]
>
>
>
> "Jack" <replyto@it> wrote in message
> news:%23a9uC0$...
>> Forgot to add.
>> I am right now starring at command prompt produced by Vista DVD
>> installation disk in repair mode.
>> I have access to that DVD and to c:\Windows folder which is XP windows.
>> Jack
>>
>> "Jack" <replyto@it> wrote in message
>> news:u9j$Ix$...
>>> Hello,
>>> In the old good days there was a 'deltree' command (DOS & Win98) to
>>> delete folder with subfolders from the command line.
>>> Now, I need that to do in Vista.
>>> How to do that?
>>> Jack
>>>

>>
>>

>



 
Reply With Quote
 
Jack
Guest
Posts: n/a

 
      03-07-2008
Thanks.
I have tried rd and rmdir and both told me that folders are not empty.
Stupid me, forgot about switches!
Jack

"R. C. White" <> wrote in message
news:31BF464B-AD3B-4072-84C9-...
> Hi, Jack.
>
> How about: rd /s
>
> Rd is Remove Directory, of course, and the /s switch removes all the
> subfolders, too. As usual in the Command Prompt window (which we
> old-timers still call the "DOS window" even though we know it's not really
> DOS), type the command followed by /? for what I call a mini-Help file
> that shows the switches and parameters available with the command. Rd
> offers only a couple: /s and /q.
>
> It's a little surprising - to me, at least - that rd won't work if there
> are files in the folder, but rd /s will.
>
> RC
> --
> R. C. White, CPA
> San Marcos, TX
>
> Microsoft Windows MVP
> (Running Windows Live Mail 2008 in Vista Ultimate x64 SP1)
>
> "Jack" <replyto@it> wrote in message
> news:u9j$Ix$...
>> Hello,
>> In the old good days there was a 'deltree' command (DOS & Win98) to
>> delete folder with subfolders from the command line.
>> Now, I need that to do in Vista.
>> How to do that?
>> Jack

>



 
Reply With Quote
 
Jack
Guest
Posts: n/a

 
      03-07-2008
sorry, forgot about switches!
Jack

"Jack" <replyto@it> wrote in message
news:%...
> That removes only empty folders!
> Jack
>
> " Keith Miller (MVP)" <> wrote in message
> news:%23$...
>> C:\Users\Keith>rd /?
>> 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
>>
>>
>> --
>> Good Luck,
>>
>> Keith
>> Microsoft MVP [Windows Shell/User]
>>
>>
>>
>> "Jack" <replyto@it> wrote in message
>> news:%23a9uC0$...
>>> Forgot to add.
>>> I am right now starring at command prompt produced by Vista DVD
>>> installation disk in repair mode.
>>> I have access to that DVD and to c:\Windows folder which is XP windows.
>>> Jack
>>>
>>> "Jack" <replyto@it> wrote in message
>>> news:u9j$Ix$...
>>>> Hello,
>>>> In the old good days there was a 'deltree' command (DOS & Win98) to
>>>> delete folder with subfolders from the command line.
>>>> Now, I need that to do in Vista.
>>>> How to do that?
>>>> Jack
>>>>
>>>
>>>

>>

>
>



 
Reply With Quote
 
Keith Miller \(MVP\)
Guest
Posts: n/a

 
      03-07-2008
Glad to help.

--
Good Luck,

Keith
Microsoft MVP [Windows Shell/User]



"Jack" <replyto@it> wrote in message
news:...
> sorry, forgot about switches!
> Jack
>
> "Jack" <replyto@it> wrote in message
> news:%...
>> That removes only empty folders!
>> Jack
>>
>> " Keith Miller (MVP)" <> wrote in message
>> news:%23$...
>>> C:\Users\Keith>rd /?
>>> 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
>>>
>>>
>>> --
>>> Good Luck,
>>>
>>> Keith
>>> Microsoft MVP [Windows Shell/User]
>>>
>>>
>>>
>>> "Jack" <replyto@it> wrote in message
>>> news:%23a9uC0$...
>>>> Forgot to add.
>>>> I am right now starring at command prompt produced by Vista DVD
>>>> installation disk in repair mode.
>>>> I have access to that DVD and to c:\Windows folder which is XP windows.
>>>> Jack
>>>>
>>>> "Jack" <replyto@it> wrote in message
>>>> news:u9j$Ix$...
>>>>> Hello,
>>>>> In the old good days there was a 'deltree' command (DOS & Win98) to
>>>>> delete folder with subfolders from the command line.
>>>>> Now, I need that to do in Vista.
>>>>> How to do that?
>>>>> Jack
>>>>>
>>>>
>>>>
>>>

>>
>>

>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Help please regarding Command Prompt Ronnie Vernon MVP Windows Vista General Discussion 0 03-12-2008 06:29 PM
How to delete folder from the command prompt? Jack Windows Vista Installation 7 03-07-2008 04:43 AM
command prompt help Brad Windows Vista General Discussion 2 01-13-2008 12:22 AM
DVD Command Prompt john Windows Vista Installation 4 03-20-2007 04:36 PM
Command Prompt Here Brad Palmer Windows Vista General Discussion 4 02-20-2007 02:17 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59