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: Doing A Large File(s) Deletion (Several Hundred) ?

21 Apr 2015   #1
Robert11

Windows 7 64bit
 
 
Doing A Large File(s) Deletion (Several Hundred) ?

Hello,

Have several hundred Notepad messages in system that Agent Ransak found that a virus put in as warning messages. All over the place.

Tried deleting using AgentRansak, but it can't seem to handle that many.
Other than individually, or just a few at a time, which isn't too practical.

Any good way to use a small program or whatever to delete them all in one action after entering the name of the Notepad file ?

Seems to be the same file name, but located all over.

Bob


My System SpecsSystem Spec
.
21 Apr 2015   #2
MilesAhead

Windows 7 32 bit
 
 

You could try Linux utilities ported to Windows. For example the Linux "Find" command takes a file pattern and you can set every found file to have a command run on it, such as rm(for remove or del.)

There are several free collections. I'm not sure which is the most recently updated. But searching

"Linux tools for Windows" should find several.
My System SpecsSystem Spec
21 Apr 2015   #3
paul1149

Linux Lite 2.8 x64 (full-featured, fast, rock-solid)
 
 

How about a simple DEL command in a CMD window? DEL /S /Q <filename.txt> should hit subfolders and perform without confirmation. Type DEL /? in a CMD window for more options.

You might want to create a system image and a user file backup before doing a mass delete.
My System SpecsSystem Spec
.

21 Apr 2015   #4
MilesAhead

Windows 7 32 bit
 
 

Quote   Quote: Originally Posted by paul1149 View Post
How about a simple DEL command in a CMD window? DEL /S /Q <filename.txt> should hit subfolders and perform without confirmation. Type DEL /? in a CMD window for more options.

You might want to create a system image and a user file backup before doing a mass delete.
That's cheating Paul. Too easy.
My System SpecsSystem Spec
21 Apr 2015   #5
paul1149

Linux Lite 2.8 x64 (full-featured, fast, rock-solid)
 
 

I like easy. Doesn't happen often enough!
My System SpecsSystem Spec
22 Apr 2015   #6
Robert11

Windows 7 64bit
 
 
For Paul, et al Re Sr. Citizen On Deleting Large Files ?

Hello Paul.

Quite a bit on in years now, and frankly not too sharp with this stuff anymore.
Thanks so much for help; really appreciate it.

The files, hundreds and hundreds, were downloaded by this CTB Locker trojan.
Have things cleaned up, sorta, and will try reinstalling from my backups later.

But would sure like to eliminate these several hundred messages that keep coming up.

They are apparently done in Notepad.
The name is: help_restore_files

Whenever I trys to run your suggestion in a command line, It comes back with a syntax error msg.

Not too sharp with command line usage, so I am undoubtedly doing somethisng wrong.

Do I need the .txt as you suggested ?
Tried with and without, but still get the syntax error.
Should siat be used with one of those / commands. Iwould laike it to just delete the whole few hundred automatically; just do it all

Exactly what is the format to use ? e.g., do I use the * ?

Assume you are dealiang with a not too bright Sr. Citizen ! Whatmight I be entering incorrectly ?

Any thoughts would be most appreciated.

Again, thanks for help,
Bob
My System SpecsSystem Spec
22 Apr 2015   #7
paul1149

Linux Lite 2.8 x64 (full-featured, fast, rock-solid)
 
 

You can go to Windows Explorer ("Computer" on the Start Menu), up to the Tools menu, Options, and on the View tab uncheck "hide known file extensions". That will tell you what extension these files have. Whatever it is, you need to enter the file name exactly as it is, without the angle brackets I used.

Or you can use the wildcard, as in help_restore_files.*

I would test it out on a small folder with no subfolders, and only then use it on higher level folders. At this point you can enter

DEL /S /Q help_restore_files.*

That will hit all subfolders and will not ask before it acts.

But please back up your files first. A good prog for that is Aomei Backupper.

Actually, a better command may be Recycle. Not sure if that's a native part of Win7 or if I added it. But if you have it

Recycle -f help_restore_files.*

will send the files to the Recycle Bin, so you can restore if something gets messed up.
My System SpecsSystem Spec
22 Apr 2015   #8
paul1149

Linux Lite 2.8 x64 (full-featured, fast, rock-solid)
 
 

Robert, I corrected a typo in my DEL command line. Also, the Recycle command, while good, doesn't do subfolders.
My System SpecsSystem Spec
23 Apr 2015   #9
Robert11

Windows 7 64bit
 
 
From OP For Paul

Hello,

Seems to have worked.

Thanks so much for taking the time to help me out.
Much appreciated.

Bob
My System SpecsSystem Spec
23 Apr 2015   #10
paul1149

Linux Lite 2.8 x64 (full-featured, fast, rock-solid)
 
 

Excellent. Take care.
My System SpecsSystem Spec
Reply

 Doing A Large File(s) Deletion (Several Hundred) ?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
accidental file deletion with a twist
short version: accidentally deleted files from an SSD by missplacing mouse cursor > pressed esc and ctrl-z immedialtely after delete was pressed. > ctrl z did not work. > deleted files did not show up in recycle bin > lost files can be seen and recovered with recovery software but...
General Discussion
Permissions For File Deletion?
I have only user account in Win7 (which is an Admin account, named "Admin") now when I go to one of my backup drives (in this case "D:\") and attempt to delete certain directories it gives me "Folder Access Denied - You Require permission from TrustedInstaller to make changes to this folder" ...
General Discussion
Old File Deletion 2nd Hard Drive
I am trying to clean up my second internal hard drive in my desktop in which I just upgraded the OS to Windows 7. My second hard drive (D) was the one that I think I had XP on before I upgraded to Windows 7. I installed Windows 7 on the 1st hard drive (C). So at this point I just want (D) to be as...
General Discussion
File Deletion and Rearange
I noticed something yesterday. In my music file there were files deleted completely and others were reorganized and mixed up. I didn't do it and no one else uses this computer. Immediately went on red alert and done scans with 3 different security programs and nothing but cookies. other files not...
General Discussion
File remains there for about 1min after deletion
Hi guys, i have problems with deleting file corret. I want to install steam. While updating there is an error: "deleted steam.exe but the file is still there". I tried to go to the folder where it is located and delete it on my own. Another error: "Access denied" (Logged on as admin)....
Software
File Deletion, Wierd
Hi, When i delete a file, whether its on the desktop or in my documents, pictures, music or anywhere else; they do not dissapear until i restart windows explorer or refresh the desktop. This is the same when i restore items from the recycle bin. They only troubleshooting method i have uses is a...
General Discussion


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 16:11.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App