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

25 Jan 2015   #10
grizzlyadamz

W7 Professional 64
 
 

Heh, aah, well it's kinda funny really. You explained what the switches did, I got the picture I was playing with fire.
Just didn't anticipate I'd faceplant at the worst possible time.
Figured I'd try and get a warning out.


But, I CAN still access my restore points, so it's looking like more of an inconvenience than a loss anyway.
So, I dunno, I guess in spite of my misfortune at the moment, thanks for making the guide anyway. The net effect is vastly, vastly positive, so just keep that in mind.
Guys like you make the internet a great (if potentially dangerous) resource.


My System SpecsSystem Spec
.
25 Jan 2015   #11
Brink

64-bit Windows 10 Pro
 
 

No problem. I'm just glad you were able to recover.
My System SpecsSystem Spec
09 Nov 2015   #12
chow

windows 7 home basic
 
 
need help in command prompt

hi,

can i know how to delete specific file extensions in whole of computer irrespective of number of drives without asking confirmation for deletion and also including hidden , read only type files?

For example , say i need to delete an .jpg file which is present in say all drives with read only or hidden property. please help

main points is :
1) need to delete particular file extension.
2) need to delete from whole computer permanently without asking confirmation.
My System SpecsSystem Spec
09 Nov 2015   #13
Brink

64-bit Windows 10 Pro
 
 

Hello Chow, and welcome to Ten Forums.

You could use the command below in an elevated command prompt, but you'll need to repeat it for each specific drive letter. Substitute C in the command for the drive letter.

DEL /F /S /Q /A "C:\*.jpg"
My System SpecsSystem Spec
.

09 Nov 2015   #14
chow

windows 7 home basic
 
 

Hi Brink,

DEL /F /S /Q /A "C:\*.jpg"

above command works but as you mentioned , i need to repeat for all drives.

I have a situation where I will be not knowing the number of drives and their Letters, so is there any command to delete from all drives of a computer?
My System SpecsSystem Spec
09 Nov 2015   #15
Brink

64-bit Windows 10 Pro
 
 

Not that I know of, but you could use "DiskPart" with "List Volume" to see the drive letters.
My System SpecsSystem Spec
Reply

 File - Delete from Command Prompt




Thread Tools




Similar help and support threads
Thread Forum
Folder - Delete from Command Prompt
How to Delete a Folder in Windows from the Command Prompt This will show you how to permanently delete a Folder in Vista, Windows 7, or Windows 8 using the RD or RMDIR command from within a command prompt. This can be handy if you cannot delete the folder using the normal methods. ...
Tutorials
A file in Desktop cant be deleted. Command prompt doesnt recognize it.
The files name is "Music Place", which is an application from Toshiba. I can not find it in the desktop folder and all the programs that i have used are not able to recognize this file as existing in the desktop. Ive tried to delete it in safe mode but it didnt work. Ive also tried to delete it...
General Discussion
Command Prompt missing File Menu
Hello! Any help would be appreciated: my command prompt window does not have a file menu. I also cannot manually resize the window. I am not sure what caused this, and I have tried F1-F12 to see if that would toggle a setting, but it did not make a change. Thanks for any help!
General Discussion
Use of free form file names in Command Prompt
Can someone advise me how to specify files names that contains a space, e.g. the name "this file" in Command Prompt. I tried using " and ' to quote the file name, but none works Thanks
General Discussion
programmatic way with BAT file determining if elevated command prompt
Is there any programmatic way within a BATch file of determining whether it has been started from an elevated command prompt (run as Administrator) or a normal command prompt? I note the difference between the Current Directory at start of the BATch file, but wonder if there is a better way. ...
General Discussion
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 13:36.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App