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 ...
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. ...
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 ...
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 ...
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 ...