Showing tag results for scripting techniques

May 18, 2005
Post comments count0
Post likes count0

How Can I Generate Random Numbers Using a Script?

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

Hey, Scripting Guy! How Can I Access Active Directory on a Specific Domain Controller?

ScriptingGuy1

Hey, Scripting Guy! How can I access Active Directory on a specific domain controller?-- SD Hey, SD. You know, one of the cool things about Active Directory is that you usually don’t need to access the directory service on a specific domain controller. Because Active Directory information is replicated between all the domain controllers in ...

Scripting Guy!scripting techniquesVBScript
May 5, 2005
Post comments count0
Post likes count0

How Can I Determine the Week of the Month a Date Falls In?

ScriptingGuy1

Hey, Scripting Guy! How can I determine the week of the month a date falls in?-- AK Hey, AK. You’re probably familiar with the book Moby Dick, the story of a crazy sea captain who became obsessed with hunting down and finishing off the great white whale. Well, this question turned out to be the Moby Dick of the scripting world. When we first rea...

Scripting Guy!scripting techniquesVBScript
May 4, 2005
Post comments count0
Post likes count0

How Can I Exit a For Each Loop?

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

How Can I Purge All the Print Jobs on a Windows 2000 Print Server?

ScriptingGuy1

Hey, Scripting Guy! How can I purge all the print jobs on a Windows 2000 print server?-- KC Hey, KC. This is one of those questions we hate, not because we don’t have an answer for it - we do - but because we have to temporarily abandon one of the core tenets of the Scripting Guy Way of Life. That tenet - just a second while we blow the dust off...

Scripting Guy!scripting techniquesVBScript