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

02 Jul 2015   #70
Pyprohly

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

Add the pause command to the file. This is what your batch file should look like --
Code:
rd /s /q \\?\%1
pause



My System SpecsSystem Spec
.
02 Jul 2015   #71
englishbob1

windows 7 ultimate x64
 
 

well that sorted it, thanks alot, i dont know what the bat file does but it took it off, i rebooted to make sure it was gone and its no more.
thanks so much to all that helped me.
Ill recommend this site to others from the forums im on having the same issue
My System SpecsSystem Spec
02 Jul 2015   #72
Pyprohly

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

Quote   Quote: Originally Posted by englishbob1 View Post
well that sorted it, thanks alot, i dont know what the bat file does but it took it off
Batch files work the devil. That's all you should know ...

Quote   Quote: Originally Posted by englishbob1 View Post
i rebooted to make sure it was gone and its no more.
Yea, um, perhaps I should have directed you to "restart explorer" too, after executing the batch file.

Quote   Quote: Originally Posted by englishbob1 View Post
thanks so much to all that helped me.
You're welcome, and welcome to Seven Forums.

Quote   Quote: Originally Posted by englishbob1 View Post
Ill recommend this site to others from the forums im on having the same issue
Yes, about that ... you suggest others experience the same issue when downloading this certain file(/folder)? That's very odd and should never happen.

Englishbob, before you go, would you, by any chance, be able to kindly link us to this download so that the exact problem can be identified, and a solution to the very source of the problem can be made?
My System SpecsSystem Spec
02 Jul 2015   #73
englishbob1

windows 7 ultimate x64
 
 

i just checked whoever uploaded it has now taken it down, but ill keep an eye out for anyone else with the issue
My System SpecsSystem Spec
.

02 Jul 2015   #74
Pyprohly

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

Quote   Quote: Originally Posted by englishbob1 View Post
i just checked whoever uploaded it has now taken it down
Strange.

Quote   Quote: Originally Posted by englishbob1 View Post
but ill keep an eye out for anyone else with the issue
Great.

If you hand anyone the batch file, do make sure you instruct them to delete it after. You wouldn't want to be held responsible for any accidental deletions they make or giving them "malicious code".
My System SpecsSystem Spec
02 Jul 2015   #75
englishbob1

windows 7 ultimate x64
 
 

ok will do
thanks again
My System SpecsSystem Spec
06 Oct 2015   #76
basilthacker

Windows 8 64 bit
 
 

I seem to be having an issue with deleting a set of two empty folders I created. When I try to delete them, it tells me I need administrator permission. I tried using the batch file method, and it said "Access is denied". I found an administrator command prompt (Windows key + A + X on Windows 8). Should I try deleting it using that? Also, would you like screenshots of my problem? If so, just tell me the best way to do screenshots.
My System SpecsSystem Spec
06 Oct 2015   #77
Brink

64-bit Windows 10 Pro
 
 

Hello Basil, and welcome to Seven Forums.

Yep, using the command in an elevated command prompt would give you the needed elevated rights.

Elevated Command Prompt
My System SpecsSystem Spec
06 Oct 2015   #78
basilthacker

Windows 8 64 bit
 
 

Ok then. Should I document any of this or is it good?
My System SpecsSystem Spec
06 Oct 2015   #79
Brink

64-bit Windows 10 Pro
 
 

Should all be the same other than using an elevated command prompt instead.
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 01:01.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App