Showing tag results for scripting techniques

Apr 3, 2006
Post comments count0
Post likes count0

How Can I Count the Number of Words in a Text File?

ScriptingGuy1

Hey, Scripting Guy! How can I count the number of words in a text file?-- LA Hey, LA. You know, this is one of those questions where the Scripting Guys outsmarted themselves. (Not that outsmarting the Scripting Guys is particularly hard to do, mind you.) For one thing, we’re writing this column on a Friday, and we always look for an easy way out...

Scripting Guy!scripting techniquesVBScript
Mar 30, 2006
Post comments count0
Post likes count0

How Can I Temporarily Pause a Script in an HTA?

ScriptingGuy1

Hey, Scripting Guy! How can I temporarily pause a script in an HTA?-- TJ Hey, TJ. You know, throughout history people have spent an enormous amount of time and energy searching for the meaning of life. The Scripting Guys have never taken part in this quest. Why not? Well, laziness aside, we know that it doesn’t matter: even if you did find the m...

Scripting Guy!scripting techniquesVBScript
Mar 27, 2006
Post comments count0
Post likes count0

How Can I Determine the Default Script Host on a Computer Before I Run a Script?

ScriptingGuy1

Hey, Scripting Guy! I know that when I run a script I can use code to determine whether the script is running under WScript or CScript. What I can’t figure out is this: how can I determine the default script host on a computer before I run a script?-- AT Hey, AT. You know, it’s not very often that people completely stump the Scripting Guys; howe...

Scripting Guy!scripting techniquesVBScript
Mar 23, 2006
Post comments count0
Post likes count0

How Can I Write a Script That Will Open a Text File and Shuffle the Words Found in That File?

ScriptingGuy1

Hey, Scripting Guy! My daughter has a flash-card style program that gets its list of words from a text file. How can I write a script that will open that file and automatically shuffle the list of words?-- SN Hey, SN. You know, for the most part we try to keep this column focused on practical system administration tasks: we tell you how to set d...

Scripting Guy!scripting techniquesVBScript
Mar 15, 2006
Post comments count0
Post likes count0

How Can I Delete a Folder That Has an Apostrophe in the Name?

ScriptingGuy1

Hey, Scripting Guy! How can I delete a folder that has an apostrophe in the name?-- JH Hey, JH. Ah, yes, the apostrophe: every script writer’s arch-nemesis. The apostrophe seems like such a simple little character, but don’t let its appearance fool you: the apostrophe (or the single quote) is probably the most deadly character to be found on the...

Scripting Guy!scripting techniquesVBScript