Showing tag results for text files

Apr 15, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Import a Fixed-Width Data File into Microsoft Excel?

ScriptingGuy1

Hey, Scripting Guy! How can I import a fixed-width data file into Microsoft Excel?-- RS Hey, RS. This column is being written on a Friday morning, and so far it’s been a very weird morning at that. For one thing, it’s not raining and – if you look closely – you can even see the sun. (It’s been awhile, but we’d recognize the sun anywhere.) Even w...

Scripting Guy!scripting techniquesVBScript
Apr 10, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Conditionally Add Lines to a Text File?

ScriptingGuy1

Hey, Scripting Guy! I need a script that can read a file and, based on the contents, insert some additional lines of text into that file. Can you help me with that?-- JS Hey, JS. We’re sure that most of you have heard by now that Microsoft has made an offer to buy Yahoo!, an offer currently valued at around $42 billion. (Because the offer is bas...

Scripting Guy!scripting techniquesVBScript
Mar 22, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Use Data Read From a Text File as Command-Line Parameters For a Batch File?

ScriptingGuy1

Hey, Scripting Guy! I'm trying to automate a tedious license server task. To do this, I need to loop through a text file line-by-line, grab out a user name, asset number, and license ID, and then pass those values to a batch file. How can I do all that?-- DM Hey, DM. Before we get started today is Friday, March 21, 2008 isn’t it? We wanted to do...

Scripting Guy!scripting techniquesVBScript
Mar 6, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Write a Message to All the Empty Files in a Folder?

ScriptingGuy1

Hey, Scripting Guy! I need to search a certain directory for files with a size of 0 KB, then replace the non-existent text in those files with an error message like this one: "File did not save correctly." I have been searching for the answer myself and can't seem to grasp it. Can you help me on this one?-- CE Hey, CE. Have you ever heard the ex...

Scripting Guy!scripting techniquesVBScript
Feb 11, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Remove Extraneous Spaces From Fields in a Text File?

ScriptingGuy1

Hey, Scripting Guy! I have a text file in which each field has a bunch of extra spaces tacked on to the end. How can I remove all those extra spaces?-- GC Hey, GC. Well, today is Monday, February 11th, which can mean only one thing: the 2008 Winter Scripting Games are just a few days away. But we didn’t need to tell you that, did we? After all, ...

Scripting Guy!scripting techniquesVBScript