We help IT Professionals succeed at work.

How I find scanners with microsoft devcon.exe?

Medium Priority
656 Views
Last Modified: 2013-12-17
Hi everyone!

I like to know wich scanners are connected with devcon.exe. I tried with find, find all, but I nedd something explicit with scanners.

Thnx for attention.
Comment
Watch Question

Please explain your problem: you want to find scanners attached to a running instance of a windows executable called devcon.exe? Is this executable running on your linux system? O_o

Author

Commented:
Nooo!....hahaha

OK. I begin.

1. I have a windows OS. Only one machine.
2. I looking for a solution to find the scanners, only scanners.
3. I use dataflex language.
4. I found davcon.exe to find the hardware. For the language that I use, I could´t use other like WMI or something based in the msdn microsoft. So, I use devcon.
5. In devcon show me the Image devices. But I only need the scanner.

I hope to be clear.

thnx, everyone!
Ok, I can say with the most assured certainty that I know nothing about your solution :)

However, please note that you are in the wrong sections:
Kernel And Operating System Specific Programming, Bourne-Again Shell (bash), Multimedia Programming

Call a moderator to modify the zones, or you'll get no answer :/
Jens FiedererTest Developer/Validator

Commented:
Looks to me like the zones are even WORSE now.

He specifically said he could NOT use "other like WMI or something based in the msdn microsoft".

He uses "Dataflex", good luck getting help with that.  I used it many years ago, but only to port FROM it.

I think he is looking for something to parse the Devcon output and eliminate non-scanners.

Maybe something like "grep", hence the "bash".  MSDOS equivalent might be "find".

If devcon's output somehow tags the image devices that are scanners, this might not be hard.
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2011

Commented:
Whast the devcon command you are using, that has found the devices succesfully??
Jens FiedererTest Developer/Validator

Commented:
I think his devcon must be this one:

http://support.microsoft.com/kb/311272

Author

Commented:
Hi everyone!

The problem is that Dataflex only permit us dll access methods Johnb6767...jejeje. Dataflex is focus for databases, but sometimes request us solutions like that.

Jensfiederer, I use the next command:

devcon hwids =image

Thnx a lot
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2011
Commented:
Inside of the environment you are going to be able to get the results from this.....

devcon hwids =image | find /i "Name"

Mine outputs....

Name: HP Officejet 5600

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
OK, I think that is the best answer. However, other devices shows. But I think that is suficient. Thnx a lot.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.