Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Can't delete folder in Windows 7

18 Nov 2009   #11
Uber Philf

W7 RTM Ultimate x64
 
 

Quote   Quote: Originally Posted by kegobeer View Post
Quote   Quote: Originally Posted by Uber Philf View Post
OR IN the Command Prompt.

Code:
 
 
G:
rd graphics
In DOS, the rd command will not work if there are files/folders contained within the directory. As there is a subdirectory inside GRAPHICS, the rd GRAPHICS command will fail. To remove a directory that contains other files/directories, the /S switch is required (use the /Q switch in order to not ask if it is ok to delete each folder).

Opps, my bad, thanks for the clear-up


My System SpecsSystem Spec
.
18 Nov 2009   #12
kegobeer

Windows 7 Ultimate x64 SP1
 
 

^^^^ No problem. It's easy to forget all of the switches when you don't use DOS constantly. I didn't remember until I read your post!
My System SpecsSystem Spec
18 Nov 2009   #13
tulsa40

Windows 7
 
 

That did the trick: I had to use the /S switch because there were files in that folder. (Though files that I couldn't even see in DOS.) And I had to add the /P switch while getting the folder names because there were so many folders.

Thanks everyone. I really (really!) appreciate the help -- I couldn't have done it without your help. Now my back is proceeding smoothly.
My System SpecsSystem Spec
.

18 Nov 2009   #14
kegobeer

Windows 7 Ultimate x64 SP1
 
 

Glad it worked.
My System SpecsSystem Spec
18 Nov 2009   #15
Uber Philf

W7 RTM Ultimate x64
 
 

Fantastic!, good work Kego. :)
My System SpecsSystem Spec
28 Jan 2010   #16
shrimpkebab

 
 

Quote   Quote: Originally Posted by kegobeer View Post
Quote   Quote: Originally Posted by kegobeer View Post
To switch to the G drive, simply type g:

Use the following commands, after opening up a command prompt:

Code:
g:
cd graphics
dir /x
The 8.3 names will be listed in the column immediately before the long filename column. Use the rd command with the 8.3 name. For example:

Code:
rd VIRTUA~1
If you receive an error, use the /S switch, which will remove all files and subdirectories, along with the parent directory, as I described in my reply to Uber Philf.

Code:
rd VIRTUA~1 /S
I registered to these forums only so that i could thank you for this!
I had a folder with 0byte that could not be deleted or moved and it was driving me crazy cuss i tried lots of "solutions" i found on google that didnt work but this did! Thanks again!
My System SpecsSystem Spec
13 Mar 2010   #17
tautomer

Windows 7 - 64
 
 
thank you all...

Ive been battling with this for a week...

Ive tried: F5, lockhunter, indexing, linux live, cmd del<foldername>...

you guys are like my own personal jesus christ's

"rd <folder> /S" worked!!!!


thanks so much!
My System SpecsSystem Spec
13 Mar 2010   #18
motc7

 
 

If Killbox didn't work, try Unlocker which does good for me and is GUI based next time you have a problem that is similar.

UNLOCKER 1.8.9 BY CEDRICK 'NITCH' COLLOMB


Edit: Just read the rules again, is posting this link in this context considered advertising?
My System SpecsSystem Spec
13 Mar 2010   #19
wullthebull

 

the above link is unsafe according to my ie8 browswer
My System SpecsSystem Spec
13 Mar 2010   #20
motc7

 
 

Quote   Quote: Originally Posted by wullthebull View Post
the above link is unsafe according to my ie8 browswer
A lot of sites popup unsafe.

It's on CNET too just as an FYI. That link above is the actual developer site.

My question was not whether it was safe or not, which i would never intentionally post an unsafe link, but whether it's considered advertising in the context by which it was posted.
My System SpecsSystem Spec
Reply

 Can't delete folder in Windows 7




Thread Tools




Similar help and support threads
Thread Forum
Can't delete windows.old folder
I've upgraded to windows 7 RC from the beta and it created a windows.old folder. I've deleted all the files inside the folder that i was able to delete, but couldn't delete the windows and program files folder in there->not able to delete the windows.old folder. When I try to delete the...
General Discussion
Cant delete 'Windows' folder
As simple as it sounds, it was an old hdd that had windows on it and there is a folder on it still called 'windows' with system32 folder in it, i have changed permissions and who owns it and yet i still cant delete it with admin rights. the folder has a lock on it but idk what else to try
Software
i can't delete a folder in windows 7?
Hi, I am new to this site so if i post on wrong section I'm sorry. Anyway i am having a big problem with my window 7 Pro. I can't delete some folder/files ect... If i try to delete the folder it say "You need permission to perform this action" but I'm the only administrator on this PC. I try...
General Discussion
How to delete Windows folder? (not old)
okay first let me explain why i want to delete this "Windows" folder i don't want to talk about the other reason why cause its a bit long story-short..the "Windows" is in my 2nd HDD which act as my extra HDD so i don't need the "Windows" folder which contains 10GB and i can't delete it i tried the...
General Discussion
cannot delete a folder in windows 7
in my windows 7 i am not able to delete a folder .it shows that the action cant be completed because the folder or file is open in another program . somebody help me in resvolving it". and i tried to delete it in command prompt it shows "access denied " fd.exe
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 15:16.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App