Go Back   TechArena Community > Technical Support > Computer Help > Windows Vista > Vista Help
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to delete folder from the command prompt?

Vista Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 07-03-2008
Jack
 
Posts: n/a
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



Reply With Quote
  #2  
Old 07-03-2008
Jack
 
Posts: n/a
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
Reply With Quote
  #3  
Old 07-03-2008
Keith Miller \(MVP\)
 
Posts: n/a
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
Reply With Quote
  #4  
Old 07-03-2008
R. C. White
 
Posts: n/a
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.
Reply With Quote
  #5  
Old 07-03-2008
Jack
 
Posts: n/a
Re: How to delete folder from the command prompt?

That removes only empty folders!
Reply With Quote
  #6  
Old 07-03-2008
Jack
 
Posts: n/a
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!
Reply With Quote
  #7  
Old 07-03-2008
Jack
 
Posts: n/a
Re: How to delete folder from the command prompt?

sorry, forgot about switches!
Reply With Quote
  #8  
Old 07-03-2008
Keith Miller \(MVP\)
 
Posts: n/a
Re: How to delete folder from the command prompt?

Glad to help.

--
Good Luck,
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Vista > Vista Help
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 04:07 PM.