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

25 Aug 2011   #10
zungul

Windows 7 Ultimate x64
 
 

Hi
I tried what you said and most of the contents of the folder was deleted but one subfolder I've got message: "Access is denied".
What I suppose to do to delete this folder ?
Thanks in advance.


My System SpecsSystem Spec
.
25 Aug 2011   #11
Brink

64-bit Windows 10 Pro
 
 

Hello Zungul,

What's the full path of the folder? I just wanted to make sure that this is not a important Windows system folder that should not be deleted first.
My System SpecsSystem Spec
25 Aug 2011   #12
xxxdannyxxx

Windows 7 Home Premium x64 SP1
 
 

Thanks Shawn

Sure this will come in handy

Danny
My System SpecsSystem Spec
25 Aug 2011   #13
Brink

64-bit Windows 10 Pro
 
 

You're welcome Danny.
My System SpecsSystem Spec
.

27 Sep 2011   #14
Keyoung59

Windows 7 Ultimate x64-bit SP1
 
 
Need Help With Folder

This is the path of the folder I want to delete.

Z:\Kevin\MEGA\JDownloader\Kevin

I just tried this in Command Prompt and I get this message.
Folder - Delete from Command Prompt-1.jpg

I have tried everything to delete this folder and nothing seems to work. I have tried Unlocker, LockHunter. This is the message I get when I try to right click and delete it.

I have also tried sfc/scannow and chkdsk and nothing. This is not the drive the OS is on.

Folder - Delete from Command Prompt-2.jpg

Properties Image Of Folder:
Folder - Delete from Command Prompt-3.jpgFolder - Delete from Command Prompt-4.jpg

Thanks,

Kevin


My System SpecsSystem Spec
27 Sep 2011   #15
Brink

64-bit Windows 10 Pro
 
 

Hello Kevin,

Did you also try deleting it from a command prompt at boot?
My System SpecsSystem Spec
27 Sep 2011   #16
Norp

Win 7 ult
 
 
I had the same problem Kevin, this is what worked

I had the same problem Kevin and this is what worked for me...

*do not type in the "s below

1. Open the command prompt (cmd.exe)
2. go to the directory that the folder is in...example: I want to delete the folder "C:\Users\Noodle\Downloads\Plumb - Hang On (The Remixes)" so type "cd C:\Users\Noodle\Downloads"
3. at this point you should be at C:\Users\Noodle\Downloads in the cmd window. Now type in "dir /a /x /p"
4. You will get a list of the directories in the folder and the one I'm interested in was

07/04/2010 19:08 <DIR> PLUMB-~1 Plumb - Hang On (The Remixes)

5. I ran the cmd.exe as admin (when it opens your prompt should be "c:\windows\system 32>"). Now I typed in...

rd /s /q "C:\Users\Noodle\Downloads\PLUMB-~1" (this time leave the "s in)

6. check to make sure the folder is deleted and you should be done.

From my understanding and I'm not a guru at this, there is naming issue and although the folder should have been named "Plumb - Hang On (The Remixes)", it is recognized as "PLUMB-~1". Anyways, I had the same problem and this is what worked for me. I hope this helps and good luck.

Norp

PS the example I used, I patched together from different sites that I used to figure this out.
My System SpecsSystem Spec
27 Sep 2011   #17
Keyoung59

Windows 7 Ultimate x64-bit SP1
 
 

@Shawn Yes I did.

@Norp Didn't work.

I just went ahead and copied files to a different drive and then formatted the drive. Everything is good now.

Thanks Again,

Kevin
My System SpecsSystem Spec
28 Sep 2011   #18
Brink

64-bit Windows 10 Pro
 
 

Kevin,

I'm happy to hear that you got it sorted.
My System SpecsSystem Spec
24 Nov 2011   #19
fishcad

Windows 7 Home Premium
 
 
Access to file denied

I can get to the directory I want to delete but I get a message that access is denied when I try to delete either folders or files. This is happening with 5 folders of left-over update stuff.
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 05:42.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App