Showing tag results for Scripting Guy!

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 23, 2005
Post comments count0
Post likes count0

How Can I Set an Active Directory Attribute Value to NULL?

ScriptingGuy1

Hey, Scripting Guy! How can I set an Active Directory property to NULL? I tried setting the value to an empty string (“”) but it didn’t work.-- JJ Hey, JJ. You know, it’s not like the Scripting Guys to get philosophical; one of the Scripting Guys, for example, bases his entire life on this credo: never answer the phone early on Saturday morning....

Scripting Guy!VBScriptActive Directory
Mar 22, 2005
Post comments count0
Post likes count0

How Can I Save a Single Excel Worksheet to a CSV File?

ScriptingGuy1

Hey, Scripting Guy! I’d like to be able to open an Excel spreadsheet, get all the information off one of the worksheets, and then save that worksheet data to a comma-separated values file. How can I do that?-- SS Hey, SS. You know, you just have to love Excel. Yes, we know, to be “cool” these days you’re supposed to say th...

Scripting Guy!VBScriptOffice
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