Showing archive results for 2006

Aug 15, 2006
Post comments count0
Post likes count0

How Can I Remove Double Double Quotes From a Text File?

ScriptingGuy1

Hey, Scripting Guy! I have a comma-separated values file that has data similar to this: data1",""data2"","data3",""data4"". As you can see, some of the items are enclosed by two sets of double quote marks (like ""data2""). How can I remove one of those sets of double quote marks, leaving the item looking like this: “data2”?-- RH Hey, RH. Yes, it...

Scripting Guy!scripting techniquesVBScript
Aug 14, 2006
Post comments count0
Post likes count0

How Can I List All the Printers on a Remote Computer?

ScriptingGuy1

Hey, Scripting Guy! How can I list all the printers – both local printers and network printers – on a remote computer?-- CH Hey, CH. You know, back when he worked at the University of Washington the Scripting Guy who writes this column was asked to speak at a symposium being held as part of a conference on computers and education. To say this wa...

Scripting Guy!VBScriptprinting
Aug 11, 2006
Post comments count0
Post likes count0

How Can I Determine the Name of a Script While That Script is Running?

ScriptingGuy1

Hey, Scripting Guy! From within the script itself, how can I get the name of a running script? I need that in order to create a generic error handler for all my scripts.-- TB Hey, TB. You know, the Scripting Guy who writes this column is in the office today, trying to wrap things up so he can start a well-deserved vacation. And no, he’s not goin...

Scripting Guy!scripting techniquesVBScript
Aug 10, 2006
Post comments count0
Post likes count0

How Can Tell Whether the NumLock Key is On or Off?

ScriptingGuy1

Hey, Scripting Guy! How can I tell whether the NumLock key on a computer is on or off?-- KA Hey, KA. You know, there are two problems with being a Scripting Guy. (Three, if you count the amount we get paid for doing this.) For one thing, you always have to be on your guard whenever Dean is around. Why? Well, to name one example, as we were busy ...

Scripting Guy!VBScriptOffice
Aug 9, 2006
Post comments count0
Post likes count0

How Can I Concatenate Files of the Same Name?

ScriptingGuy1

Hey, Scripting Guy! How can I concatenate all the files (taken from various folders) that have the same file name?-- AS Hey, AS. You know, the hardest part about selecting questions to be used in the Hey, Scripting Guy! column isn’t writing the scripts; instead, it’s figuring out how to go about testing the scripts. After all, many people write ...

Scripting Guy!scripting techniquesVBScript