Click here to Skip to main content
15,924,982 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
QuestionConfigure router Pin
Alex_Y30-Aug-05 3:33
Alex_Y30-Aug-05 3:33 
AnswerRe: Configure router Pin
Farhan Noor Qureshi30-Aug-05 7:12
Farhan Noor Qureshi30-Aug-05 7:12 
GeneralRe: Configure router Pin
Alex_Y30-Aug-05 8:18
Alex_Y30-Aug-05 8:18 
GeneralRe: Configure router Pin
Farhan Noor Qureshi30-Aug-05 11:48
Farhan Noor Qureshi30-Aug-05 11:48 
AnswerRe: Configure router Pin
markkuk30-Aug-05 12:47
markkuk30-Aug-05 12:47 
GeneralRe: Configure router Pin
Farhan Noor Qureshi31-Aug-05 6:05
Farhan Noor Qureshi31-Aug-05 6:05 
QuestionEnumerating COM ports in use Pin
souren7729-Aug-05 9:31
souren7729-Aug-05 9:31 
QuestionGet the PnP ID of USB thumdrive Pin
Dinakara K26-Aug-05 23:14
Dinakara K26-Aug-05 23:14 
Dear all,

I have a problem on how to get the PnP ID of a USB Thumbdrive. I will get the driveletter of the
thumbdrive, say "J" but not able to assoiciate the PnP ID of the USB device in that particular drive (ie J), instead the code given below is giving PnP ID of all the mounted thumbdrives

I will be very thankful if someone can get me the solution

code:

Dim obj, objs, buf

Set objs = GetObject("winmgmts:").InstancesOf("Win32_DiskDrive")

Set objFSO = CreateObject("Scripting.FileSystemObject")

Set colDrives = objFSO.Drives

Dim drv As String

drv = "J"

For Each obj In objs

For Each objDrive In colDrives

buf = IIf((obj.InterfaceType = "USB") And (objDrive.DriveLetter = "J"), _ obj.PNPDeviceID, "")

buf = "Model: " & obj.Model & vbCrLf
buf = buf & "PnP Device ID: " & obj.PNPDeviceID & vbCrLf

msgbox buf
Next
Next




End Sub


thank you

Dinakara K
CAIR
Bangalore


Dinakara K
CAIR, Bangalore
AnswerRe: Get the PnP ID of USB thumdrive Pin
quacks_a_lot4-Sep-05 9:40
quacks_a_lot4-Sep-05 9:40 
QuestionFlat Panel LCD and KVM Pin
Jon Sagara26-Aug-05 12:11
Jon Sagara26-Aug-05 12:11 
AnswerRe: Flat Panel LCD and KVM Pin
Mike Dimmick26-Aug-05 12:58
Mike Dimmick26-Aug-05 12:58 
Generalhelp needed Pin
Anonymous24-Aug-05 21:15
Anonymous24-Aug-05 21:15 
GeneralRe: help needed Pin
toxcct24-Aug-05 23:27
toxcct24-Aug-05 23:27 
GeneralPC104 driver with Windows Pin
dannygilbert324-Aug-05 9:45
dannygilbert324-Aug-05 9:45 
GeneralRe: PC104 driver with Windows Pin
fat_boy6-Sep-05 5:51
fat_boy6-Sep-05 5:51 
GeneralHardware forums Pin
ap1022-Aug-05 18:31
ap1022-Aug-05 18:31 
GeneralRe: Hardware forums Pin
toxcct22-Aug-05 20:38
toxcct22-Aug-05 20:38 
Generalmy CD drive not working Pin
ap1022-Aug-05 18:27
ap1022-Aug-05 18:27 
GeneralRe: my CD drive not working Pin
Mike Dimmick22-Aug-05 23:09
Mike Dimmick22-Aug-05 23:09 
GeneralRe: my CD drive not working Pin
Alexander M.,23-Aug-05 22:41
Alexander M.,23-Aug-05 22:41 
GeneralRe: my CD drive not working Pin
Trollslayer28-Aug-05 6:25
mentorTrollslayer28-Aug-05 6:25 
Generalplz help Pin
Anonymous22-Aug-05 16:18
Anonymous22-Aug-05 16:18 
GeneralUSB Compatibility Pin
Hans Ruck22-Aug-05 1:41
Hans Ruck22-Aug-05 1:41 
GeneralRe: USB Compatibility Pin
Michael Martin22-Aug-05 19:19
professionalMichael Martin22-Aug-05 19:19 
GeneralRe: USB Compatibility Pin
Hans Ruck23-Aug-05 2:06
Hans Ruck23-Aug-05 2:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.