The How-To Geek Forums Have Migrated to Discourse


How-To Geek Forums / Windows 7

(Solved) - Delete Directory that is two words in cmd

(5 posts)
  • Started 3 years ago by johnnyyyyish
  • Latest reply from Xhi
  • Topic Viewed 558 times

PARTNER SPOTLIGHT

Recommended: Clean Your Mac the Easy Way with CleanMyMac 3

If you want to clean up your Mac the easy way, CleanMyMac is a great tool to get the job done easily, and it will even keep your computer clean automatically.

Unlike the competition, it also includes great tools like a Clean Uninstaller, to get rid of applications and clean up the junk that they leave behind. All with the click of a button.

Download CleanMyMac 3 for Free Today

Posted yesterday 
Top
johnnyyyyish
Posts: 8

I would like to delete a folder that has two words with a space in between. A program I use leaves behind a folder and I wanted to make a batch file to delete it but when you list the directory with a space, cmd think you that the two words are two serperate directories. Any ideas? Thanks

Posted 3 years ago
Top
 
johnnyyyyish
Posts: 8

I realized that may have been confusing. I use a program that leaves a folder behind after running it and I want to run a batch file that deletes this folder. The problem is the folders name is blank (space) blank. when i try to run "rd /s C:\ProgramData\Blank Blank" It searches for two folders, one by the name of blank and the second by the name of blank. How to I delete that folder that has two words for the name of it in cmd. Thanks.

Posted 3 years ago
Top
 
Xhi
Posts: 6298

Try it this way

rd /s "C:\ProgramData\Blank Blank"

Accepted Answer · Posted 3 years ago
Top
 
johnnyyyyish
Posts: 8

Ahh Perfect!! Thanks for the help! -John

Posted 3 years ago
Top
 
Xhi
Posts: 6298

:)

Posted 3 years ago
Top
 



Topic Closed

This topic has been closed to new replies.