|
| |||||||||
| Tags: command, delete, prompt |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| 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
| |||
| |||
| 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@it> wrote in message news:u9j$Ix$fIHA.2448@TK2MSFTNGP03.phx.gbl... > 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 > |
|
#3
| |||
| |||
| 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@it> wrote in message news:%23a9uC0$fIHA.2000@TK2MSFTNGP03.phx.gbl... > 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$fIHA.2448@TK2MSFTNGP03.phx.gbl... >> 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 >> > > |
|
#4
| |||
| |||
| 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@grandecom.net Microsoft Windows MVP (Running Windows Live Mail 2008 in Vista Ultimate x64 SP1) "Jack" <replyto@it> wrote in message news:u9j$Ix$fIHA.2448@TK2MSFTNGP03.phx.gbl... > 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 |
|
#5
| |||
| |||
| Re: How to delete folder from the command prompt?
That removes only empty folders! Jack " Keith Miller (MVP)" <k.miller@NOSPAM.mchsi.com> wrote in message news:%23$cD9PAgIHA.4164@TK2MSFTNGP05.phx.gbl... > 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$fIHA.2000@TK2MSFTNGP03.phx.gbl... >> 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$fIHA.2448@TK2MSFTNGP03.phx.gbl... >>> 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 >>> >> >> > |
|
#6
| |||
| |||
| 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@grandecom.net> wrote in message news:31BF464B-AD3B-4072-84C9-1E347F8E0A1C@microsoft.com... > 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@grandecom.net > Microsoft Windows MVP > (Running Windows Live Mail 2008 in Vista Ultimate x64 SP1) > > "Jack" <replyto@it> wrote in message > news:u9j$Ix$fIHA.2448@TK2MSFTNGP03.phx.gbl... >> 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 > |
|
#7
| |||
| |||
| Re: How to delete folder from the command prompt?
sorry, forgot about switches! Jack "Jack" <replyto@it> wrote in message news:%23abPRZAgIHA.5348@TK2MSFTNGP03.phx.gbl... > That removes only empty folders! > Jack > > " Keith Miller (MVP)" <k.miller@NOSPAM.mchsi.com> wrote in message > news:%23$cD9PAgIHA.4164@TK2MSFTNGP05.phx.gbl... >> 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$fIHA.2000@TK2MSFTNGP03.phx.gbl... >>> 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$fIHA.2448@TK2MSFTNGP03.phx.gbl... >>>> 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 >>>> >>> >>> >> > > |
|
#8
| |||
| |||
| Re: How to delete folder from the command prompt?
Glad to help. -- Good Luck, Keith Microsoft MVP [Windows Shell/User] "Jack" <replyto@it> wrote in message news:uMmISbAgIHA.6136@TK2MSFTNGP03.phx.gbl... > sorry, forgot about switches! > Jack > > "Jack" <replyto@it> wrote in message > news:%23abPRZAgIHA.5348@TK2MSFTNGP03.phx.gbl... >> That removes only empty folders! >> Jack >> >> " Keith Miller (MVP)" <k.miller@NOSPAM.mchsi.com> wrote in message >> news:%23$cD9PAgIHA.4164@TK2MSFTNGP05.phx.gbl... >>> 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$fIHA.2000@TK2MSFTNGP03.phx.gbl... >>>> 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$fIHA.2448@TK2MSFTNGP03.phx.gbl... >>>>> 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 >>>>> >>>> >>>> >>> >> >> > > |
![]() |
|
| Thread Tools | Search this Thread |
| |
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 09:19 PM |
| Command prompt not working and Folder options not showing | efyuze | Operating Systems | 1 | 25-01-2010 10:23 AM |
| How to Delete Video Drivers from Command Prompt | Aamin | Windows Software | 3 | 06-04-2009 02:36 PM |
| Access a shared folder with command prompt? | Venator | Operating Systems | 4 | 12-03-2009 08:47 PM |
| Forcing folder sync - from a command prompt or script? | boe | Windows Server Help | 3 | 26-01-2009 06:09 AM |