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: Folder - Delete from Command Prompt

09 Feb 2013   #30
BiggestT4

Windows 7 Home Premium 32bit
 
 

ok, so after clicking the ownership change button frantically it has done it, I am now the owner of that folder, however when I try and delete it, it still comes up with the message access is denied.


My System SpecsSystem Spec
.
09 Feb 2013   #31
Parman

Windows 7 Ultimate x64
 
 

Which folder is this. Should you have full permissions?
My System SpecsSystem Spec
09 Feb 2013   #32
BiggestT4

Windows 7 Home Premium 32bit
 
 

Ok, so it came up with the fact that one of my users was inheriting permissions, therefore I have been able to remove that and now thankfully it has started to work, I am now in control of that folder.

Thank you for your time, but you can consider this issue solved!
My System SpecsSystem Spec
09 Feb 2013   #33
Parman

Windows 7 Ultimate x64
 
 

I'm glad it all got worked out. I figured it was just a permission issue but I had to make sure it was a folder you could actually delete.
My System SpecsSystem Spec
.

29 Aug 2013   #34
PatrickGSR94

Windows 7 Professional x64
 
 

Okay so I have a laptop at work that the AV was popping up constantly this morning saying it had removed 30 or 40 trojans from C:\Program Files (x86)\Google\Desktop\Installer\... So I uninstalled the Google Bar for IE and also Google Chrome. Removed every other folder in that Google directory. But it will not let me delete the \Google\Desktop folder and everything inside it.

I have tried removing it in Command Line. I have tried Safe Mode with Command Line, I have even tried creating a registry key that moves that folder to another folder and renames it at next reboot. That last part worked. Now it sits in C:\temp\ and the folder is called simply "delete". But I still cannot get rid of that folder from CMD or anything else. It says access is denied at every sub-folder level.

I am using the administrator account for the computer. I wish I could connect the hard drive to a different PC but that's not really possible. I checked Properties of the offending folder and it says "0 files, 257 folders". Yikes!

Any other ideas what I might try?

*edit* downloaded the app Unlocker and that made quick work of it. Entire folder is gone now.
My System SpecsSystem Spec
29 Aug 2013   #35
fd1193

Windows 7
 
 

I still have a problem, I'm trying to delete a corrupted folder off a external HDD, I go to CMD, Run as Admin, Type, "RD /S /Q "F:\G.I. Joe: Retaliation (2013) [1080p]" & it says "the system cannot find the specified file". The external is the "F:" & the folder I'm trying to delete is the root of the drive "F:\G.I. Joe: Retaliation (2013) [1080p]". I think that my problem has to do with the name of the folder cause there is a ":" in it, but that is just what I was thinking. Also I am in the F: directory when I do all this.
My System SpecsSystem Spec
29 Aug 2013   #36
Brink

64-bit Windows 10 Pro
 
 

Hello fd, and welcome to Seven Forums.

In that case, you might see if using the free program Unlocker may be able to delete it for you.

Hope this helps,
Shawn
My System SpecsSystem Spec
09 Sep 2013   #37
John E Quest

W 7 Home Premium 64 b
 
 

I followed all the suggestions and after doing so I ended up with -Access is denied (!!!!major frustration!!!)
This has been something I've tried to resolve for more than a year and still NEED to resolve this as It continues to get copied ( inadvertently) on disks I burn.\
Please help?
JEQ
My System SpecsSystem Spec
10 Sep 2013   #38
Brink

64-bit Windows 10 Pro
 
 

Hello John, and welcome to Seven Forums.

Normally when you get an "Access is denied" message, you would need to take ownership (if not already) of the file , then set permissions of the file to "Allow" your account "Full control" of it.

If that doesn't help, then you could try the free program Unlocker to delete it with.

If this is a system file or folder of Windows, then you wouldn't want to delete it though.

Hope this helps,
Shawn
My System SpecsSystem Spec
03 May 2014   #39
hulkbuster

Dual boot: Win Xp and Win7 Pro
 
 

Thank you that was a great tutorial. I was looking for some tutorial for this in the net.
Glad i found here.
My System SpecsSystem Spec
Reply

 Folder - Delete from Command Prompt




Thread Tools




Similar help and support threads
Thread Forum
File - Delete from Command Prompt
How to Delete a File in Windows from the Command Prompt This tutorial will show you how to permanently delete a File in Vista, Windows 7, or Windows 8 using the DEL or ERASE command from within a command prompt. This can be handy if you cannot delete the file normally.While you can run...
Tutorials
How do I Close an opened folder in Run or at the Command prompt
I have an application that opens a folder using a shell to Explorer. I can close Most apps I shell using Taskkill but not the opened folder. I have tried Openfiles with no luck ( I think it is for networks). I need this to tidy up an application. Thank you.
General Discussion
double clicking a folder opens a command prompt
dear sir, till yesterday. it was ok. since today morning, this problem appears. when i double click a folder to open it, it asks for permission to open with windows command processor. if i click on yes, a command prompt appears and commands keep on scrolling. if i right click on the folder, then...
General Discussion
command line to delete folder contents
What line in a batch file would delete the contents of C:\Users\MyName\AppData\Local\Microsoft\Windows\Temporary Internet Files\ ? del /F /S /Q /A "C:\Users\MyName\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*" fails, so does del...
Performance & Maintenance
Script or command to delete contents of Software Distribution folder?
Hi all. Anyone able to suggest a vbs (or command-line file) to clean out C:\Windows\Software Distribution\Download? Thanks, I'm aware of the significance (or lack of) of this folder, and I realize I could just drill down to it and manually dump the contents. I'm just looking for a more elegant...
Windows Updates & Activation
File and Folder - Rename from Command Prompt
How to Rename a File and Folder from the Command Prompt This will show you how to rename a file and folder using the REN or RENAME command from within a command prompt. This can be handy if you cannot rename the file or folder normally. Normally you would just right click on the file or...
Tutorials


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 10:55.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App