Showing tag results for text files

Oct 18, 2005
Post comments count0
Post likes count0

How Can I Add the Last Lines from a Group of Text Files to a Word Document?

ScriptingGuy1

Hey, Scripting Guy! How can I take the last line in a group of text files and paste that information into a Word document?-- JV Hey, JV. You know, one thing we try to do in this column is focus on practical system administration tasks. We’ll deviate from that focus every now and then, but for the most part we try to address questions we feel a l...

Scripting Guy!scripting techniquesVBScript
Aug 30, 2005
Post comments count0
Post likes count0

How Can I Increment the Last Line in a Text File?

ScriptingGuy1

Hey, Scripting Guy! How can I increment the last line in a text file; that is, if the last line is 1, indicating we’ve done one backup, I need to increment it to 2, indicating that we’ve now done a second backup.-- TH Hey, TH. If you’ve ever been to a carnival then you’ve no doubt been tempted by some of the sideshow games. Throw a baseball and ...

Scripting Guy!scripting techniquesVBScript
Aug 19, 2005
Post comments count0
Post likes count0

How Can I Remove All Duplicate Lines From a Text File?

ScriptingGuy1

Hey, Scripting Guy! How can I remove all duplicate lines from a text file?-- SW Hey, SW. You know, to be a Scripting Guy means to embark on a never-ending quest to find the ultimate solution to a given problem. (Or at least that’s what we tell our manager when he asks why we never actually seem to finish anything: “But boss, never-ending quests ...

Scripting Guy!scripting techniquesVBScript
Aug 1, 2005
Post comments count0
Post likes count0

How Can I Search for Two Items in a Text File?

ScriptingGuy1

Hey, Scripting Guy! You’ve shown us how to search a text file for a single word or phrase, but how can I search a text file for two phrases? I need to know if a file contains either Windows 2000 or Windows XP.-- JR Hey, JR. You know, it’s hard enough to get the Scripting Guys to do one thing; getting them to do two things would seem to be well-n...

Scripting Guy!scripting techniquesVBScript
Jun 30, 2005
Post comments count0
Post likes count0

How Can I Add a Line to the Top of a Text File?

ScriptingGuy1

Hey, Scripting Guy! How can I add a line to the top of a text file?-- FT Hey, FT. You know, at one point in his career Sir Arthur Conan Doyle actually killed off Sherlock Holmes, figuring he’d written everything anyone could ever write about the master detective. Public outcry soon made him change his mind, and in short order he brought Sherlock...

Scripting Guy!scripting techniquesVBScript