For every question, there's an answer -- and you'll find it here!


Printer-friendly copy
Top The PC Q&A Forum The Computer Forum topic #542497
View in linear mode

Subject: "Need a DOS Command to Delete Folder" Previous topic | Next topic
buzzmagFri May-04-12 08:11 PM
Charter member
763 posts
Click to send email to this author Click to send private message to this authorClick to view this author's profileClick to add this author to your buddy list
"Need a DOS Command to Delete Folder"
Fri May-04-12 08:11 PM by buzzmag

          

I'm a post-DOS guy and have no idea how to delete a directory using the DOS Command in Windows Repair. I can't delete the folder while in windows because I don't have permission despite being signed on as the administrator. I've tried adding permissions with no success.

Here's the path to the folder:

C:Users\UserName\appdata\local\temp\RT_Mount

Looking for the correct DOS prompt.

  

Alert Printer-friendly copy | | Top

Replies to this topic
Subject Author Message Date ID
RE: Need a DOS Command to Delete Folder
May 04th 2012
1
RE: Need a DOS Command to Delete Folder
May 04th 2012
2
      RE: Need a DOS Command to Delete Folder
May 05th 2012
3
           RE: Need a DOS Command to Delete Folder
May 05th 2012
4
           RE: Need a DOS Command to Delete Folder
May 06th 2012
5
                RE: Need a DOS Command to Delete Folder
May 06th 2012
7
RE: Need a DOS Command to Delete Folder
May 06th 2012
6
RE: Need a DOS Command to Delete Folder
May 06th 2012
8
RE: Need a DOS Command to Delete Folder
May 06th 2012
9
RE: Need a DOS Command to Delete Folder
May 06th 2012
10
RE: Need a DOS Command to Delete Folder
May 06th 2012
11
      RE: Need a DOS Command to Delete Folder
May 06th 2012
12
RE: Need a DOS Command to Delete Folder
May 07th 2012
13
RE: Need a DOS Command to Delete Folder
May 07th 2012
14

jmcFri May-04-12 08:34 PM
Charter member
7812 posts
Click to view this author's profileClick to add this author to your buddy list
#1. "RE: Need a DOS Command to Delete Folder"
In response to buzzmag (Reply # 0)
Fri May-04-12 08:44 PM by jmc

          

Quote:
QUOTE:
I'm a post-DOS guy and have no idea how to delete a directory using the DOS Command in Windows Repair. I can't delete the folder while in windows because I don't have permission despite being signed on as the administrator. I've tried adding permissions with no success.

Here's the path to the folder:

C:Users\UserName\appdata\local\temp\RT_Mount

Looking for the correct DOS prompt.



deltree c:\Users\UserName\appdata\local\temp\RT_Mount

deltree "space" c:\

http://www.computerhope.com/deltree.htm

That is old Dos. If your Xp or above

This:

rmdir c:Users\UserName\appdata\local\temp\RT_Mount /s

example
rmdir c:\test /s for XP

http://www.computerhope.com/rmdirhlp.htm

  

Alert Printer-friendly copy | | Top

    
buzzmagFri May-04-12 08:43 PM
Charter member
763 posts
Click to send email to this author Click to send private message to this authorClick to view this author's profileClick to add this author to your buddy list
#2. "RE: Need a DOS Command to Delete Folder"
In response to jmc (Reply # 1)


          

Quote:
QUOTE:
QUOTE:
I'm a post-DOS guy and have no idea how to delete a directory using the DOS Command in Windows Repair. I can't delete the folder while in windows because I don't have permission despite being signed on as the administrator. I've tried adding permissions with no success.

Here's the path to the folder:

C:Users\UserName\appdata\local\temp\RT_Mount

Looking for the correct DOS prompt.



deltree c:\Users\UserName\appdata\local\temp\RT_Mount

deltree "space" c:\

http://www.computerhope.com/deltree.htm

That is old Dos. If your Xp or above

This:

rmdir c:Users\UserName\appdata\local\temp\RT_Mount /s

example
rmdir c:\test /s


Thank you. I'll try it now.

  

Alert Printer-friendly copy | | Top

        
buzzmagSat May-05-12 02:14 PM
Charter member
763 posts
Click to send email to this author Click to send private message to this authorClick to view this author's profileClick to add this author to your buddy list
#3. "RE: Need a DOS Command to Delete Folder"
In response to buzzmag (Reply # 2)


          

This is odd. Using your command changed to indicate my user name, I get a "The system cannot find the path specified" message. I'm certain the path is correct.

  

Alert Printer-friendly copy | | Top

            
jmcSat May-05-12 02:33 PM
Charter member
7812 posts
Click to view this author's profileClick to add this author to your buddy list
#4. "RE: Need a DOS Command to Delete Folder"
In response to buzzmag (Reply # 3)
Sat May-05-12 03:06 PM by jmc

          

rmdir c: \Users\UserName\appdata\local\temp\RT_Mount /s

example
rmdir c:\test /s

Take note to the "backslash" in front of Users.
I was typing too fast and missed it.

rmdir "space" C:\

I just noticed it

sorry about that

http://www.computerhope.com/rmdirhlp.htm

Another thing is

Did you try to take "Ownership" using "all users" of that folder when
you tried changing the Security to delete that?

  

Alert Printer-friendly copy | | Top

            
therubeSun May-06-12 12:52 PM
Member since Jan 22nd 2003
15826 posts
Click to send private message to this authorClick to view this author's profileClick to add this author to your buddy list
#5. "RE: Need a DOS Command to Delete Folder"
In response to buzzmag (Reply # 3)


  

          

If "UserName" or any part of the Path contain spaces, you must put the Path in quotes.

So ... "C:\Users\Tony M\appdata\local\temp\RT_Mount"

Additionally "AppData" is a hidden directory.
Not sure offhand if that will matter to RMDIR ?

And be aware that using /S is potentially dangerous if you get it wrong.

Like if you had two users; Tony & "Tony M".

> C:\Users\Tony M\appdata\local\temp\RT_Mount
> C:\Users\Tony\appdata\local\temp\RT_Mount

An "incorrect" usage, by not having the path in quotes, like:

> RMDIR /S C:\Users\Tony M\appdata\local\temp\RT_Mount

Could have ended up removing your "C:\Users\Tony" directory tree!


Look what happened here, both in creating & removing the directories:

--------------------------------------
BANK OF AMERICA.COM ONLINE BANKING SUCKS IN THE HUGEST WAY IMAGINABLE

Newegg.com's new image gallery layout sucks in the hugest way imaginable too !
And now they're using JavaScript to "turn" pages to boot ! SUCKS

Attachment #1, (png file)

  

Alert Printer-friendly copy | | Top

                
therubeSun May-06-12 12:56 PM
Member since Jan 22nd 2003
15826 posts
Click to send private message to this authorClick to view this author's profileClick to add this author to your buddy list
#7. "RE: Need a DOS Command to Delete Folder"
In response to therube (Reply # 5)


  

          

> Additionally "AppData" is a hidden directory.
> Not sure offhand if that will matter to RMDIR ?


Being hidden is immaterial to RMDIR, the directory will still be deleted.

--------------------------------------
BANK OF AMERICA.COM ONLINE BANKING SUCKS IN THE HUGEST WAY IMAGINABLE

Newegg.com's new image gallery layout sucks in the hugest way imaginable too !
And now they're using JavaScript to "turn" pages to boot ! SUCKS

  

Alert Printer-friendly copy | | Top

therubeSun May-06-12 12:53 PM
Member since Jan 22nd 2003
15826 posts
Click to send private message to this authorClick to view this author's profileClick to add this author to your buddy list
#6. "RE: Need a DOS Command to Delete Folder"
In response to buzzmag (Reply # 0)


  

          

> using the DOS Command in Windows Repair

What do you mean by that?

--------------------------------------
BANK OF AMERICA.COM ONLINE BANKING SUCKS IN THE HUGEST WAY IMAGINABLE

Newegg.com's new image gallery layout sucks in the hugest way imaginable too !
And now they're using JavaScript to "turn" pages to boot ! SUCKS

  

Alert Printer-friendly copy | | Top

    
jbmcmillanSun May-06-12 01:16 PM
Member since Jul 17th 2002
4850 posts
Click to send email to this author Click to send private message to this authorClick to view this author's profileClick to add this author to your buddy list
#8. "RE: Need a DOS Command to Delete Folder"
In response to therube (Reply # 6)


          

Quote:
QUOTE:
> using the DOS Command in Windows Repair

What do you mean by that?


Must mean recovery console?

  

Alert Printer-friendly copy | | Top

    
buzzmagSun May-06-12 03:31 PM
Charter member
763 posts
Click to send email to this author Click to send private message to this authorClick to view this author's profileClick to add this author to your buddy list
#9. "RE: Need a DOS Command to Delete Folder"
In response to therube (Reply # 6)


          

Quote:
QUOTE:
> using the DOS Command in Windows Repair

What do you mean by that?


In did mean the recovery console.

  

Alert Printer-friendly copy | | Top

buzzmagSun May-06-12 03:57 PM
Charter member
763 posts
Click to send email to this author Click to send private message to this authorClick to view this author's profileClick to add this author to your buddy list
#10. "RE: Need a DOS Command to Delete Folder"
In response to buzzmag (Reply # 0)


          

Quote:
QUOTE:
I'm a post-DOS guy and have no idea how to delete a directory using the DOS Command in Windows Repair. I can't delete the folder while in windows because I don't have permission despite being signed on as the administrator. I've tried adding permissions with no success.

Here's the path to the folder:

C:Users\UserName\appdata\local\temp\RT_Mount

Looking for the correct DOS prompt.


OK, Success. Did a "rmdir" with the Recovery Console Command Prompt and the folder is gone. Thanks all for their help and suggestions.

PS: It was a good learning lesson for using DOS Commands.

  

Alert Printer-friendly copy | | Top

    
jmcSun May-06-12 07:03 PM
Charter member
7812 posts
Click to view this author's profileClick to add this author to your buddy list
#11. "RE: Need a DOS Command to Delete Folder"
In response to buzzmag (Reply # 10)


          

Good News.
As long as we use MS Windows sometimes you sill need DOS.
It was good to refresh my memory about it also
I don't need to use it all that often these days.

This Website was very helpful. Give it a bookmark you may
need it again someday.

http://www.computerhope.com/issues/chusedos.htm

  

Alert Printer-friendly copy | | Top

        
MSUSun May-06-12 08:08 PM
Charter member
10321 posts
Click to send email to this author Click to send private message to this authorClick to view this author's profileClick to add this author to your buddy list
#12. "RE: Need a DOS Command to Delete Folder"
In response to jmc (Reply # 11)


  

          

He he, I still have here on my shelf right next to my computer, a 350 page book on DOS that came with my first computer. I've also had that site in my bookmarks for a couple years.

MSU

  

Alert Printer-friendly copy | | Top

Long Island UmpireMon May-07-12 12:24 PM
Charter member
1245 posts
Click to send email to this author Click to send private message to this authorClick to view this author's profileClick to add this author to your buddy list
#13. "RE: Need a DOS Command to Delete Folder"
In response to buzzmag (Reply # 0)


  

          

I wonder if the deletion could have been made using the free "Unlocker" by Cedrick "Nitch" Collomb utility that's been around for years. Deletion is accomplished during next reboot, I think before Windows kicks in.

http://www.emptyloop.com/unlocker/

  

Alert Printer-friendly copy | | Top

    
buzzmagMon May-07-12 02:09 PM
Charter member
763 posts
Click to send email to this author Click to send private message to this authorClick to view this author's profileClick to add this author to your buddy list
#14. "RE: Need a DOS Command to Delete Folder"
In response to Long Island Umpire (Reply # 13)


          

Quote:
QUOTE:
I wonder if the deletion could have been made using the free "Unlocker" by Cedrick "Nitch" Collomb utility that's been around for years. Deletion is accomplished during next reboot, I think before Windows kicks in.

http://www.emptyloop.com/unlocker/


I have Unlocker but right clicking didn't offer the option to use it on any of the files.

  

Alert Printer-friendly copy | | Top

Top The PC Q&A Forum The Computer Forum topic #542497 Previous topic | Next topic
Powered by DCForum+ Version 1.27
Copyright 1997-2003 DCScripts.com
Home
Links
About PCQandA
Link To Us
Support PCQandA
Privacy Policy
In Memoriam
Acceptable Use Policy

Have a question or problem regarding this forum? Check here for the answer.