Jump to content

How can i get device ID on AutoIt 3.3?


Recommended Posts

Please can anyone help me in "How to get device ID especially for pen drives"?

I'm working for a portable application and this is needed to identify it even if it is formated.

If possible please post any simple example!

Thanks in advance friends!

And a lot of thanks for AutoIt Team.

I love AutoIt! :)

Edited by INFOMASTER
Link to comment
Share on other sites

  • Moderators

INFOMASTER,

First, welcome to the AutoIt forums.

Using the Search facility is a good tip as there is a pretty good chance your question, or something like it, has been asked before. Look for the "Search" button to the right in the title bar.

This could well be what you need. :-)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Thank You for help Melba23 , I will try it an let you know!

I'm quite new in AutoIt (but not new in programming), and I really like it.

I really like my programing time with autoit.

Thaaanks a lot!

Link to comment
Share on other sites

Hello, again

I wass asking how to get device instance id that appears in device driver details, please.

it's something like this:

USBSTOR\DISK&VEN_&PROD_USB_FLASH_DRIVE&REV_RMAP\078C18890294&0

any help will be apreciated.

thanks

Link to comment
Share on other sites

  • Moderators

INFOMASTER,

Sorry the last suggestion did not work. Try this thread instead - I found it by searching for "USB +device +ID", by the way. ;-)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Maybe you search for it:

DriveGetSerial ( "path" )

$var = DriveGetSerial( "c:\" )
MsgBox(4096, "Serial Number: ", $var)

It can be used for return ID's of fixed drives and removal: CD,DVD,FLASH-memory, etc..

Just replace "C" on later you need

:D

Edited by Vitas

_____________________________________________________________________________

Link to comment
Share on other sites

MELBA23,

THAAANKS A LOT, for last suggestion. It was EXACTLY what I was looking for!!!

The perfect solution!!!

---------------

Vitas,

thanks for trying to help,

anyway I was asking for unique device id that does not change after I format the drive.

By the way, When we format the drive, the serial number changes, that's why I could'n t use

device serial number.

Anyway Thanks.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...