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

01 Jul 2015   #60
Brink

64-bit Windows 10 Pro
 
 

I'm not sure what else to suggest either other than trying a system restore using a restore point dated before you downloaded that file.


My System SpecsSystem Spec
.
02 Jul 2015   #61
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Quote   Quote: Originally Posted by englishbob1 View Post
i went to the forum where i downloaded the file and others have said they cant delete it either...hmm
“Hmm” indeed. Englishbob, could you perhaps link to this undeletable item here, so we can have a more practical stab at deleting this item?

Also, is it a file or a folder that is being dealt with? Your post #46 suggests it's a file that cannot be deleted, while this tutorial is about deleting folders.
My System SpecsSystem Spec
02 Jul 2015   #62
englishbob1

windows 7 ultimate x64
 
 

its a folder that has 3 folders inside it but nothing deletes, i tried the restore thing but that didnt work either, couldnt go back far enough
My System SpecsSystem Spec
02 Jul 2015   #63
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Well I hope you know what a batch file is, Englishbob, because you are going to create the following batch file --
Code:
rd /s /q \\?\%1
Drag this undeletable folder of yours onto the batch file, then delete the batch file.
My System SpecsSystem Spec
.

02 Jul 2015   #64
englishbob1

windows 7 ultimate x64
 
 

i dont know what a batch file is lol sorry
My System SpecsSystem Spec
02 Jul 2015   #65
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

It's a type of script.

Using your favourite text editor, enter the command line I've mentioned above into a text file, then rename the text file to have a .bat extension.

Finally, drag your undeletable folder onto the icon of this batch file.
My System SpecsSystem Spec
02 Jul 2015   #66
englishbob1

windows 7 ultimate x64
 
 

ok done
My System SpecsSystem Spec
02 Jul 2015   #67
englishbob1

windows 7 ultimate x64
 
 

it just flashed real fast but nothing happened
My System SpecsSystem Spec
02 Jul 2015   #68
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

With that same batch file, tack the keyword pause on a new line.

Would you be able to take a screenshot or copy paste exactly what is displayed in the black window.
My System SpecsSystem Spec
02 Jul 2015   #69
englishbob1

windows 7 ultimate x64
 
 

the black window flashes too fast to get a screenshot
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