Showing tag results for scripting techniques

Jul 19, 2006
Post comments count0
Post likes count0

How Can I Set the Default Printer Based on the IP Address of the Computer?

ScriptingGuy1

Hey, Scripting Guy! How can I set the default printer based on the IP address of the computer?-- TT Hey, TT. You’ll have to forgive us for being a little distracted this morning. Last night the Scripting Guy who writes this column went to the gym with his 16-year-old son. For the first time ever, the Scripting Son was able to bench press more th...

Scripting Guy!scripting techniquesVBScript
Jul 17, 2006
Post comments count0
Post likes count0

How Can I Get the Names of 10 Randomly-Selected Files in a Folder?

ScriptingGuy1

Hey, Scripting Guy! How can I get the names of 10 randomly-selected files in a folder? I need to do that so I can test and verify our backup and restore policies.-- CS Hey, CS. You know, if you’re interested in things that are random, haphazard, arbitrary, or downright chaotic, well, you came to the right place. For example, any time we Scriptin...

Scripting Guy!scripting techniquesVBScript
Jul 12, 2006
Post comments count0
Post likes count0

How Can I Determine Last Month’s Date?

ScriptingGuy1

Hey, Scripting Guy! How can I determine last month’s date? I need to be able to take the month and year for the previous month (using the format mmyy) and create a file name like this: test0606.xls.-- DR Hey, DR. We have to admit that, at first, this question posed a bit of a problem for the Scripting Guys. Not because this is an especially toug...

Scripting Guy!scripting techniquesVBScript
Jul 11, 2006
Post comments count0
Post likes count0

How Can I Load List Box Options From a Text File?

ScriptingGuy1

Hey, Scripting Guy! How can I load list box options from a text file?-- MV Hey, MV. You would have to mention “options,” wouldn’t you? When the Scripting Guy who writes this column first joined Microsoft some five years ago, he assumed that he’d work for two or three years, cash in all his stock options, and then spend the rest of his life lazin...

Scripting Guy!scripting techniquesVBScript
Jul 5, 2006
Post comments count0
Post likes count0

How Can I Test a Dynamic Array to See if the Array is Empty?

ScriptingGuy1

Hey, Scripting Guy! How can I test a dynamic array to see if the array is empty?-- SH Hey, SH. Today’s column is dated Wednesday, July 5th. If there really is a column today that means that, unlike last year, the neighbors and their errant fireworks didn’t set fire to the Scripting House. If there isn’t a new column today, well, to paraphrase Br...

Scripting Guy!scripting techniquesVBScript