Showing tag results for scripting techniques

Mar 28, 2005
Post comments count0
Post likes count0

How Can I Add a Word to a Text File if That Word Isn’t Already in the File?

ScriptingGuy1

Hey, Scripting Guy! How can I check a text file to see if a word appears in that file and, if it doesn’t, add the word to the file?-- JO Hey, JO. We seem to have gotten quite a few questions on this topic lately. You mentioned adding words to a custom dictionary for Microsoft Word; other people mentioned adding an entry to an LMHosts file or som...

Scripting Guy!scripting techniquesVBScript
Mar 25, 2005
Post comments count0
Post likes count0

How Can I Write Double Quotes to a Text File?

ScriptingGuy1

Hey, Scripting Guy! I’m using the FileSystemObject to create an XML file. However, I need to put double quote marks around some of the items in that file. How do I do that?-- JP Hey, JP. According to your email, you’re trying to write the following line to your XML file:<? xml version = "1.0" encoding = "UTF-8" ?> However, you’re getting ...

Scripting Guy!scripting techniquesVBScript
Mar 21, 2005
Post comments count0
Post likes count1

How Can I Be Notified Any Time a Network Cable Gets Unplugged?

ScriptingGuy1

Hey, Scripting Guy! Is there a way I can be notified any time a network cable gets unplugged on a computer?-- DD Hey, DD. A lot of people, when growing up, had a grandmother or an aunt or someone somewhere who had a house with a big attic, an attic overflowing with stuff. Admittedly, most of the time you had no idea what you were looking at when...

Scripting Guy!scripting techniquesVBScript
Mar 18, 2005
Post comments count0
Post likes count0

How Can I Create an Environment Variable Using a Script?

ScriptingGuy1

Hey, Scripting Guy! Can I create an environment variable using a script?-- OD Hey, OD. WMI is a great technology for scripting, but it has its eccentricities. For example, can you create a process using a script? Of course you can; after all, WMI’s Win32_Process class has a Create method. Can you create a service using a script? Of course you ca...

Scripting Guy!scripting techniquesVBScript
Mar 16, 2005
Post comments count0
Post likes count0

How Can I Display A Progress Bar (or Something Similar) While My Script Runs?

ScriptingGuy1

Hey, Scripting Guy! How can I get my script to do something interesting while the code executes; you know, how can I display a progress bar or something?-- HD Hey, HD. To begin with, we don’t recommend that you try to use a true progress bar; that’s because it’s very difficult to calculate - let alone display - progress. We’re all familiar with ...

Scripting Guy!scripting techniquesVBScript