Showing results for November 2004 - Page 4 of 4 - Scripting Blog [archived]

Nov 5, 2004
0
0

How Can I Work with a CN that Has a Comma in It?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! My user accounts have commas in their CN attributes; for example, Myer, Ken. How do I bind to those user accounts using a script? I always get the error message “An invalid dn syntax has been specified.”-- GT Hey, GT. For those of you who don’t know, the CN attribute is the attribute that uniquely identifies ...

Scripting Guy!VBScriptActive Directory
Nov 4, 2004
0
0

How Can I Delete All Files Older Than a Specified Date?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I’d like to have a script that can search my computer for all files older than a certain date, and then automatically delete those files. Can I do that?-- GM Hey, GM. Can you write a script that will search for and delete all the old files on your computer? You bet. Should you write a script that searches for and deletes all ...

Scripting Guy!VBScriptstorage
Nov 3, 2004
0
0

How Can I Play a Sound From Within a Script?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I have a script that pops up a message box to alert users to a problem. Is there any way I can play a sound at the same time the message box appears?-- TL Hey, TL. You guys do this on purpose, don’t you; you love to ask questions where there isn’t a clear-cut answer. This is yet another case of that: you can search high and l...

Scripting Guy!VBScriptmultimedia
Nov 2, 2004
0
0

How Can I Delete the Files in the Temporary Internet Files Folder?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Is there a way to delete all the files in the Temporary Internet Files folder using a script?-- KR Hey, AK. You know, prompted by your question one of the Scripting Guys (who shall remain nameless) thought to himself, “Hmmm, I wonder what’s in my Temporary Internet Files folder?” Upon checking, he discovered the folder contai...

Scripting Guy!VBScriptstorage
Nov 1, 2004
0
0

How Can I Make Selections from a Form When Using a Script?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I’d like to have a form with four radio buttons on it, each button representing a different computer. You choose a radio button, click another button, and then a script runs against the computer you selected. How do I do that?-- CW Hey, CW. If we’re talking strictly VBScript and Windows Script Host, the answer is simple: you ...

Scripting Guy!scripting techniquesVBScript