Showing archive results for 2005

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

How Can I Insert Files into a Word Document?

ScriptingGuy1

Hey, Scripting Guy! Awhile back you showed people how they could combine several text files into a single file. I’d like to do the same thing in Word. How can I insert files into a Word document?-- HK Hey, HK. Believe it or not it’s actually easier to insert files into a Microsoft Word document than it is to insert a text file into another text ...

Scripting Guy!VBScriptOffice
May 2, 2005
Post comments count0
Post likes count0

How Can I Add a Site to Internet Explorer’s Restricted Sites Zone?

ScriptingGuy1

Hey, Scripting Guy! How can I add a site to Internet Explorer’s Restricted Sites zone on a remote computer?-- NS Hey, NS. When it comes to scripting, Internet Explorer has a sort of dual personality. If you want to program the application itself, well, you came to the right place: Internet Explorer’s document object model is wide open, and lends...

Scripting Guy!VBScriptoperating system
Apr 29, 2005
Post comments count0
Post likes count0

How Can I Change the User and Computer Account Description Attributes Each Time a User Logs On?

ScriptingGuy1

Hey, Scripting Guy! How can I change the user and computer account Description attributes each time a user logs on? I’d like the Description to indicate who logged on, and when.-- GG Hey, GG. This is actually a pretty good idea. One question we get asked all the time is this: “How can I get a list of all my computers and who’s logged on to them?...

Scripting Guy!VBScriptActive Directory