Windows Vista Forums

How to delete folder from the command prompt?

  1. #1


    Jack Guest

    How to delete folder from the command prompt?

    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



      My System SpecsSystem Spec

  2. #2


    Jack Guest

    Re: How to delete folder from the command prompt?

    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@xxxxxx> wrote in message
    news:u9j$Ix$fIHA.2448@xxxxxx

    > 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
    >


      My System SpecsSystem Spec

  3. #3


    Keith Miller \(MVP\) Guest

    Re: How to delete folder from the command prompt?

    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@xxxxxx> wrote in message
    news:%23a9uC0$fIHA.2000@xxxxxx

    > 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@xxxxxx> wrote in message
    > news:u9j$Ix$fIHA.2448@xxxxxx

    >> 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
    >>
    >
    >

      My System SpecsSystem Spec

  4. #4


    R. C. White Guest

    Re: How to delete folder from the command prompt?

    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
    rc@xxxxxx
    Microsoft Windows MVP
    (Running Windows Live Mail 2008 in Vista Ultimate x64 SP1)

    "Jack" <replyto@xxxxxx> wrote in message
    news:u9j$Ix$fIHA.2448@xxxxxx

    > 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

      My System SpecsSystem Spec

  5. #5


    Jack Guest

    Re: How to delete folder from the command prompt?

    That removes only empty folders!
    Jack

    " Keith Miller (MVP)" <k.miller@xxxxxx> wrote in message
    news:%23$cD9PAgIHA.4164@xxxxxx

    > 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@xxxxxx> wrote in message
    > news:%23a9uC0$fIHA.2000@xxxxxx

    >> 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@xxxxxx> wrote in message
    >> news:u9j$Ix$fIHA.2448@xxxxxx

    >>> 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
    >>>
    >>
    >>
    >


      My System SpecsSystem Spec

  6. #6


    Jack Guest

    Re: How to delete folder from the command prompt?

    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" <rc@xxxxxx> wrote in message
    news:31BF464B-AD3B-4072-84C9-1E347F8E0A1C@xxxxxx

    > 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
    > rc@xxxxxx
    > Microsoft Windows MVP
    > (Running Windows Live Mail 2008 in Vista Ultimate x64 SP1)
    >
    > "Jack" <replyto@xxxxxx> wrote in message
    > news:u9j$Ix$fIHA.2448@xxxxxx

    >> 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
    >


      My System SpecsSystem Spec

  7. #7


    Jack Guest

    Re: How to delete folder from the command prompt?

    sorry, forgot about switches!
    Jack

    "Jack" <replyto@xxxxxx> wrote in message
    news:%23abPRZAgIHA.5348@xxxxxx

    > That removes only empty folders!
    > Jack
    >
    > " Keith Miller (MVP)" <k.miller@xxxxxx> wrote in message
    > news:%23$cD9PAgIHA.4164@xxxxxx

    >> 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@xxxxxx> wrote in message
    >> news:%23a9uC0$fIHA.2000@xxxxxx

    >>> 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@xxxxxx> wrote in message
    >>> news:u9j$Ix$fIHA.2448@xxxxxx
    >>>> 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
    >>>>
    >>>
    >>>
    >>
    >
    >


      My System SpecsSystem Spec

  8. #8


    Keith Miller \(MVP\) Guest

    Re: How to delete folder from the command prompt?

    Glad to help.

    --
    Good Luck,

    Keith
    Microsoft MVP [Windows Shell/User]



    "Jack" <replyto@xxxxxx> wrote in message
    news:uMmISbAgIHA.6136@xxxxxx

    > sorry, forgot about switches!
    > Jack
    >
    > "Jack" <replyto@xxxxxx> wrote in message
    > news:%23abPRZAgIHA.5348@xxxxxx

    >> That removes only empty folders!
    >> Jack
    >>
    >> " Keith Miller (MVP)" <k.miller@xxxxxx> wrote in message
    >> news:%23$cD9PAgIHA.4164@xxxxxx

    >>> 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@xxxxxx> wrote in message
    >>> news:%23a9uC0$fIHA.2000@xxxxxx
    >>>> 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@xxxxxx> wrote in message
    >>>> news:u9j$Ix$fIHA.2448@xxxxxx
    >>>>> 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
    >>>>>
    >>>>
    >>>>
    >>>
    >>
    >>
    >
    >

      My System SpecsSystem Spec

How to delete folder from the command prompt?

Similar Threads
Thread Forum
Command Prompt doesnt seem to recognize the command line!!
Hello, I'm trying to split a .flv file by using flvparse, which is a Windows-only, command-line interface tool. I did get through to the directory...
Network & Sharing
Command Prompt
A List of Commands for Vista and How to Use them These are commands that you use in the command prompt in Vista.Some commands will not run...
Tutorials
Help with job ID's in command prompt
Hey all :) I did not know where to put this, so I'm sorry if this is the wrong place.. I typed this command into vista's command prompt(in admin...
Software
Make a command prompt run a command as soon as it opens?
Hey guys. Ive been trying to figure out how to make a command prompt run a command line as soon as the box comes up. I need this to happen...
General Discussion
How to delete folder from the command prompt?
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...
Vista General
Command prompt "COPY" command not working in brand new Windows Vis
I am trying to create an automatic Backup batch file using "COPY" command in CMD prompt in brand new laptop running Vista; but the operation not...
Vista file management
Command Prompt Here
I really miss the "command prompt here' that I added to XP. It was a XP Power Tools. I've read that you can also make it by editing the Registry -...
Vista General