A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Windows 10 » Windows 10 Help Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

File cleanup of .txt files



 
 
Thread Tools Rate Thread Display Modes
  #16  
Old January 2nd 19, 03:25 PM posted to alt.comp.os.windows-10
Ken Blake[_5_]
external usenet poster
 
Posts: 2,221
Default File cleanup of .txt files

On Wed, 02 Jan 2019 23:04:42 +1030, Gary Dingle
wrote:

On Wed, 2 Jan 2019 00:24:40 +0000, ? Good Guy ?
wrote:

On 01/01/2019 23:00, Kirk Bubul wrote:
Emboldened by your answer, I searched again. Turns out that all
of the 19,608 log*.txt


There is no such thing as log*.txt.

It is either *.log or *.txt.

How old are you? You must be nearing the end of your life considering
you have started clearing your mess before you die.


INCORRECT

A search of my C: drive of log*.txt shows 94 files ... all starting
with "log" and suffix of ".txt"




Not only are those what you already have on your drive, but anyone can
create as many such files as he wants to at any time. Saying there is
no such thing is nonsense, but what more could you expect from a
troll?
Ads
  #17  
Old January 2nd 19, 06:05 PM posted to alt.comp.os.windows-10
arlen holder
external usenet poster
 
Posts: 130
Default File cleanup of .txt files

On Tue, 01 Jan 2019 13:59:19 -0600, Kirk Bubul wrote:

Can I get rid of these files? While I like keeping the record of
the history of my play in Klondike, I can live without them.


Lots and lots and lots of solutions to your problem.

This is just one more that hasn't been suggested yet (to my knowledge).

dir /s/a/l/on/b c:\*.txt | findstr "klondike" delete_these_files.bat

Then do a global addition of "delete" in front of every filespec found.
:%s/.*/delete & (which means add a delete in front of the filespec)

Then just run the "delete_these_files.bat" script.
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 11:12 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.