![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
|
Detect number of monitors
I was wondering if anyone has an idea on how to detect the number of monitors that are attached to a remote system.
|
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
Re: Detect number of monitors
Operating system? Programming language? Any details at all?
|
|
|
|
|
|
#3 |
|
Hobbyist Programmer
|
Re: Detect number of monitors
I'm sorry. It's windows XP and the programming language will be vb.net/vbscript unless there is an easier way in another language.
|
|
|
|
|
|
#4 |
|
Not a user?
Join Date: Sep 2007
Posts: 245
Rep Power: 1
![]() |
Re: Detect number of monitors
vb 2005 xpress
vb Syntax (Toggle Plain Text)
|
|
|
|
|
|
#5 |
|
Hobbyist Programmer
|
Re: Detect number of monitors
Is there a way to do that to a remote computer. I'd have administrative rights on the remote and local computer.
|
|
|
|
|
|
#6 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
Re: Detect number of monitors
PsExec from Microsoft (prev. Sysinternals) is great for that sort of thing. It will copy over your script/program to the remote machine, run it, and redirect the standard input/output streams back to you. It's a terrible hack to get some of the functionality so common on just about every other OS.
This may be easier with WMI. I'm looking in to that right now.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 Last edited by Dameon; Jan 19th, 2008 at 3:29 PM. |
|
|
|
|
|
#7 | |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 498
Rep Power: 4
![]() |
Re: Detect number of monitors
Quote:
![]() |
|
|
|
|
|
|
#8 | |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
Re: Detect number of monitors
Quote:
Anyway, WMI may do the trick for you. Take a look at http://technet.microsoft.com/en-us/l.../bb742610.aspx wmic /user:"MACHINE\User" /node:MACHINE desktopmonitor where availability!=8 get description, screenwidth, screenheight I used that on my home network to get info about the monitors seemingly plugged in (availability not offline) on a remote machine. The user switch would be unnecessary in a domain environment. It looks like you should be able to specify multiple machines and specify a choose a convenient output format such as HTML or CSV. Should do the trick.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
|
|
|
#9 |
|
Hobbyist Programmer
|
Re: Detect number of monitors
@dameon: Is there any way to just return the count of how many?
@Ancient Dragon: If you are a user in a network with a computer. There are far more ways than just pxexec for Admins to run on your computer and chances are if they are running it on your computer it's for a specific reason and not someone trying to screw it up. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Guess a Number | 3n! | C++ | 7 | Dec 2nd, 2007 3:38 AM |
| c-unix-childprocesses-random number | programmingnoob | C | 7 | Feb 6th, 2007 8:39 PM |
| find max number in an array | paulmedic555 | C | 4 | Nov 20th, 2006 10:01 AM |
| non repeating random number generation | gencor45 | C# | 2 | Feb 9th, 2005 12:11 AM |
| Number Systems... | Ade | Coder's Corner Lounge | 7 | Jan 19th, 2005 5:32 AM |