SEARCH

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 1 year ago by johnnyyyyish
  • Latest reply from Xhi
  • Topic Viewed 558 times

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 1 year 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 1 year ago
Top
 
Xhi
Xhi
Posts: 6298

Try it this way

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

Accepted Answer · Posted 1 year ago
Top
 
johnnyyyyish
Posts: 8

Ahh Perfect!! Thanks for the help! -John

Posted 1 year ago
Top
 
Xhi
Xhi
Posts: 6298

:)

Posted 1 year ago
Top
 



Topic Closed

This topic has been closed to new replies.

Enter Your Email Here to Get Access for Free:

Go check your email!