ALTIN Posted May 27, 2009 Share Posted May 27, 2009 (edited) 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 May 27, 2009 by INFOMASTER Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 27, 2009 Moderators Share Posted May 27, 2009 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 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
ALTIN Posted May 30, 2009 Author Share Posted May 30, 2009 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 More sharing options...
ALTIN Posted June 2, 2009 Author Share Posted June 2, 2009 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 More sharing options...
Moderators Melba23 Posted June 2, 2009 Moderators Share Posted June 2, 2009 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 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
GodlessSinner Posted June 2, 2009 Share Posted June 2, 2009 (edited) 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 Edited June 2, 2009 by Vitas _____________________________________________________________________________ Link to comment Share on other sites More sharing options...
ALTIN Posted June 5, 2009 Author Share Posted June 5, 2009 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 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