malka Posted December 11, 2018 Share Posted December 11, 2018 hi, I'll be happy if someone will be able to help me... I want to check if specific device is exist without writing code of autoit, I want to do it with commands of cmd because I don't need the window to be opened.. here the screenshot: I want to reach CATC Analyzer Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted December 11, 2018 Moderators Share Posted December 11, 2018 (edited) Moved to the appropriate forum, as the Developer General Discussion forum very clearly states: Quote General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here. Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums. Moderation Team Edited December 11, 2018 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted December 11, 2018 Share Posted December 11, 2018 @malka Take a look at WMI on the Internet Earthshine 1 Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Aelc Posted December 12, 2018 Share Posted December 12, 2018 @FrancescoDiMuro is right. take a look on it cause i think you have to understand it yourself before practise. For listing the devices you can run notepad and insert this line Get-WmiObject Win32_PNPEntity | Select Name | Out-File -Append -Force "C:\Device.txt" save this as .ps1 file after that you can run it as PowerShellCMD with right-click on it why do i get garbage when i buy garbage bags? Link to comment Share on other sites More sharing options...
ModemJunki Posted December 13, 2018 Share Posted December 13, 2018 You ask about a task that AutoIT is perfectly suited for and say that you want to do it without AutoIT but you are asking on an AutoIT forum. You have multiple posts opened on the same topic and you post no example code. Well, OK. I'm bored. I will give you a hint, maybe it helps you. Command line? Have you tried using the devcon.exe tool? "Devcon classes" lists all the devices classes. "Devcon listclass <class name>" lists the devices in the class. So maybe for you "devcon listclass CATCAnalyzers" or something like that will work? You have to look in the classes, because I think devcon does not use spaces in the names when it lists them. Then you can make an batch file to parse the output or whatever you wish. Otherwise, there is an topic for device management API - it's older, and you can only download from a post later in thread on page 3, but should be a very good start: If you expect people here to write this for you I think you will be disappointed. If you try to do this yourself and show your work here then it is possible you will get help. Your boss is not paying any of us to do the work... Best of luck. Always carry a towel. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now