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 3.2 x64; Windows 7, 8.1
 
 

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 3.2 x64; Windows 7, 8.1
 
 

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 3.2 x64; Windows 7, 8.1
 
 

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 3.2 x64; Windows 7, 8.1
 
 

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 3.2 x64; Windows 7, 8.1
 
 

Excellent. Take care.
My System SpecsSystem Spec
Reply

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




Thread Tools




Similar help and support threads
Thread Forum
Need assistance with .asf file deletion
Somehow I unknowingly downloaded a media file that has an .asf file extension. I am at my wits end - the file will not open nor can I delete it. A window opens when I try to delete it and it hangs for hours. In desperation I tried moving it to the recycle bin and after many hours it appeared...
General Discussion
File Permissions Will Not Allow Deletion
Hello, When I plug my WD Passport into my laptop and try to delete a folder I get an error saying I need to provide administrator permission to delete this folder. I click continue but then I get "you require permission from administrator to make changes to this folder" and the only option...
System Security
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
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 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 19:55.
Twitter Facebook Google+