Showing results for hardware - Scripting Blog [archived]

Feb 8, 2006
0
0

How Can I Determine Whether a Computer Has Any USB 2.0 Ports?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Using a script, is there any way to determine whether a computer has any USB 2.0 ports?-- RD Hey, RD. Are you familiar with the movie Freaky Friday, where the mom and the daughter switch bodies (and roles)? Well, we have sort of a Freaky Friday kind of thing going on with this question. After all, in this column the Scripting...

Scripting Guy!VBScripthardware
Jul 21, 2005
1
0

How Can I Determine the Current Screen Resolution Being Used on a Computer?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I determine the current screen resolution being used on a computer? You know, things like 1600x1200 resolution, 16-bit color, that kind of information.-- FE Hey, FE. Remember when you were a kid and your mom would have that annoying habit of beginning a discussion by answering the question you didn’t ask? For example,...

Scripting Guy!VBScripthardware
Mar 15, 2005
0
0

How Can I Determine Which USB Devices are Connected to a Computer?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I determine which USB devices are connected to a computer?-- WM Hey, WM. If you watch a lot of TV - um, not that the Scripting Guys do; we spend our spare time reading the works of Shakespeare, solving differential equations, and otherwise tending to our many intellectual pursuits. As we’ve been told, however, any tim...

Scripting Guy!VBScripthardware
Mar 7, 2005
0
0

How Can I Tell If a File Exists on a CD or DVD Drive?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I tell whether a file exists on any CD or DVD drive connected to a computer?-- GH Hey, GH. Well, one way to do this would be to search the entire file system - including any mapped network drives - and check to see if a file (let’s call it Budget.xls) can be found anywhere. Assuming you find such a file, you can then ...

Scripting Guy!VBScriptstorage
Sep 21, 2004
1
0

How Can I Determine if a Computer is a Laptop or a Desktop Machine?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Is there any way to use WMI to determine whether a computer is a laptop or a desktop machine?-- CB Hey, CB. You bet there is, although if you didn’t know that we have no idea how you’d figure it out on your own. It turns out there’s a goofy little WMI class called Win32_SystemEnclosure, and the ChassisTypes property can tell yo...

Scripting Guy!VBScripthardware