Showing results for August 2006 - Page 3 of 5 - Scripting Blog [archived]

Aug 17, 2006
0
0

How Can I Modify the Output of the Ping Command?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I place the current date and time at the beginning of each line of Ping.exe output?-- AL Hey, AL. We have to admit, we were a little shocked by your question. Change the output of the Ping command? Really, AL. Would you ask us to rewrite Romeo and Juliet, giving it a more happy and upbeat ending? Would you ask us to f...

Scripting Guy!scripting techniquesVBScript
Aug 16, 2006
0
0

How Can I Remove Blank Spaces From File Names?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I have a folder with a bunch of files in it, files with names like Doc 1.pdf, Doc 2.pdf, and Doc 3.pdf. How do I remove the blank spaces from all those file names?-- JRP Hey, JRP. You know, today’s column represents a landmark in Hey, Scripting Guy! history. Why’s that? Because the Scripting Guy who writes this column actuall...

Scripting Guy!VBScriptstorage
Aug 15, 2006
0
0

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

ScriptingGuy1
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
0
0

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

ScriptingGuy1
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
0
0

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

ScriptingGuy1
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