Showing tag results for text files

Jun 20, 2007
Post comments count0
Post likes count0

How Can I Insert Commas at Specified Locations in Each Line in a Text File?

ScriptingGuy1

Hey, Scripting Guy! How can I insert commas at specified locations in each line in a text file?-- MM Hey, MM. Seeing as how Father’s Day has just come and gone we couldn’t talk about inserting commas into text files without first relating a heartwarming Father’s Day tale of our own. On Father’s Day the Scripting Guy who writes this column went ...

Scripting Guy!scripting techniquesVBScript
Jun 11, 2007
Post comments count0
Post likes count0

How Can I Clear the Contents of a Text File?

ScriptingGuy1

Hey, Scripting Guy! How can I clear the contents of a text file?-- JJ Hey, JJ. Well, today is Monday, June 11th, and the Scripting Guys are finally back from a week in Orlando. After all that time spent lounging around in luxury hotels, eating in gourmet restaurants, and visiting theme parks you might think that the Scripting Guys would be exci...

Scripting Guy!scripting techniquesVBScript
Jun 8, 2007
Post comments count0
Post likes count0

How Can I Get a List of All the PDF Files in a Folder and Its Subfolders?

ScriptingGuy1

Hey, Scripting Guy! How can I get a list of all the .PDF files (only the file names; I don’t want the file path or file extension) in a folder and its subfolders, and then put that list into a text file?-- PS Hey, PS. You know, PS, this is actually a hard question; far harder and far more complicated than it might sound. On top of that, the Scr...

Scripting Guy!scripting techniquesVBScript
May 30, 2007
Post comments count0
Post likes count1

How Can I Delete the First Line and the Last Line in a Text File?

ScriptingGuy1

Hey, Scripting Guy! How can I delete the first line and the last line in a text file?-- TF Hey, TF. We don’t know if anyone has ever noticed, but Hey, Scripting Guy! tends to meander from time-to-time; there are those occasions when it seemingly takes forever for us to get around to answering the question of the day. Up until now we never reall...

Scripting Guy!scripting techniquesVBScript
May 24, 2007
Post comments count0
Post likes count0

How Can I Compare the Contents of Two Text Files?

ScriptingGuy1

Hey, Scripting Guy! I have two separate text files. One file contains a list of MAC addresses taken from a network scan; the other contains a list of MAC addresses for our currently-managed devices. How can I compare these two files, and output a list of addresses that have no corresponding device to a third text file?-- SR Hey, SR. You know, l...

Scripting Guy!scripting techniquesVBScript