Showing tag results for scripting techniques

Mar 14, 2005
Post comments count0
Post likes count0

How Can I Automatically Dismiss a Message Box After a Specified Length of Time?

ScriptingGuy1

Hey, Scripting Guy! I’d like to display a Yes/No message box for a few seconds and then, if no one clicks a button, have the message box disappear and the script perform the default operation. How do I do that?-- JR Hey, JR. Sounds like you need the WSH Shell object and the Popup method. Popup works a lot like the VBScript Msgbox function: like ...

Scripting Guy!scripting techniquesVBScript
Mar 10, 2005
Post comments count0
Post likes count0

How Can I Temporarily Add a Group to Another Active Directory Group?

ScriptingGuy1

Hey, Scripting Guy! I’d like to add an Active Directory group to a second group, but only for an hour; after an hour, I’d like remove that group from the second group. Can I do that with a script?-- JW Hey, JW. Well, this is definitely one of the more interesting questions we’ve received. As far as we know, there’s no way to put a time limit on ...

Scripting Guy!scripting techniquesVBScript
Mar 3, 2005
Post comments count0
Post likes count0

How Can I Determine the Elapsed Time Between Two Dates?

ScriptingGuy1

Hey, Scripting Guy! How can I tell how many days there are between two dates? For example, if I have a log file that says an application started on January 1, 2005 and that the application ended today, is there a way to determine how many days the application ran?-- AL Hey, AL. You know, in the second Hey, Scripting Guy! column ever written ("Ho...

Scripting Guy!scripting techniquesVBScript
Mar 1, 2005
Post comments count0
Post likes count0

How Can I Use a Multi-Select Dialog Box in a Script?

ScriptingGuy1

Hey, Scripting Guy! Awhile back you showed us how to use a File Open dialog box in our scripts. At the same time you said you’d show us how to use a multi-select dialog box. Did you just forget about the multi-select dialog box?-- AA Hey, AA. Yes, we … forgot … about the multi-select dialog box. (Saying we forgot sounds better than saying, “No, ...

Scripting Guy!scripting techniquesVBScript
Feb 25, 2005
Post comments count0
Post likes count0

How Can I Sort the Contents of a Text File?

ScriptingGuy1

Hey, Scripting Guy! I have a text file that contains a list of computer names. How can I sort that file alphabetically?-- LR Hey, LR. If we wanted to take the easy way out we’d just tell you, “Sorry, you can’t do that.” And we could get away with that because none of Microsoft’s scripting technologies feature a way to open up and then sort a tex...

Scripting Guy!scripting techniquesVBScript