Showing results for getting started - Scripting Blog [archived]

Nov 21, 2006
0
0

How Can I Add a Function to a Windows PowerShell Script?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I add a function to a Windows PowerShell script?-- TT Hey, TT. You know, we’re going to do something a little unusual today: we aren’t going to mention the fact that the University of Washington defeated Washington State University in the annual Apple Cup football game. Granted, that’s the kind of thing we typically wou...

Scripting Guy!Windows PowerShellscripting techniques
Oct 19, 2006
0
0

How Can I Tell Whether a Number is Even or Odd?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I tell whether a number is even or odd?-- JO Hey, JO. You know, just this morning the Scripting Guy who writes this column was driving in to work when he heard an advertisement for a store that sells HD TVs. “We don’t confuse you by stocking all the different HD TVs available,” said the ad. “No, sir. Instead, we make ...

Scripting Guy!scripting techniquesVBScript
Aug 24, 2006
0
0

How Can I Add or Subtract Two Hexadecimal Numbers?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I add or subtract two hexadecimal numbers?-- PS Hey, PS. You know, according to the old saying there are two things you should never watch being made: laws and sausages. We’d like to add a third item to that list: Hey, Scripting Guy! columns. We knew you’d say that. But remember, you’re seeing the finished product, a ...

Scripting Guy!scripting techniquesVBScript
May 18, 2005
0
0

How Can I Generate Random Numbers Using a Script?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Our auditors have suggested that we randomly pick projects to examine and ensure that each project was completed and signed off per company policy. Because these projects are numbered sequentially I thought maybe we could write a script that would randomly select the project numbers for us to audit. Can you help us with that?-...

Scripting Guy!scripting techniquesVBScript
May 4, 2005
0
0

How Can I Exit a For Each Loop?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Is there any way to exit a loop in a script?-- MW Hey, MW. You know, when we started writing this column we intended it to be a simple little thing that answered those basic questions so many beginning scripters have: • How can I determine the current date in a script? (Use VBScript’s Date function.) • How can I echo me...

Scripting Guy!scripting techniquesVBScript