Results 1 to 8 of 8

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



  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

  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

  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.

  5. #5
    Jack Guest

    Re: How to delete folder from the command prompt?

    That removes only empty folders!

  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!

  7. #7
    Jack Guest

    Re: How to delete folder from the command prompt?

    sorry, forgot about switches!

  8. #8
    Keith Miller \(MVP\) Guest

    Re: How to delete folder from the command prompt?

    Glad to help.

    --
    Good Luck,

Similar Threads

  1. How to delete a file through command prompt ?
    By Girish-S in forum Windows Software
    Replies: 9
    Last Post: 14-10-2011, 08:19 PM
  2. Bash command to delete entire Files from folder
    By Strangers in forum Windows Software
    Replies: 4
    Last Post: 11-11-2010, 09:30 PM
  3. Command prompt not working and Folder options not showing
    By efyuze in forum Operating Systems
    Replies: 1
    Last Post: 25-01-2010, 10:23 AM
  4. How to Delete Video Drivers from Command Prompt
    By Aamin in forum Windows Software
    Replies: 3
    Last Post: 06-04-2009, 01:36 PM
  5. Access a shared folder with command prompt?
    By Venator in forum Operating Systems
    Replies: 4
    Last Post: 12-03-2009, 07:47 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,659,848.24640 seconds with 17 queries