Jump to content
Sign in to follow this  
n9mfk9

Device Pid?

Recommended Posts

n9mfk9

hi all is there a command in autoit

to get a device pid like this

'USB Mass Storage Device' 'USB\VID_05DC&PID_B013\0000141790' [REMOVEABLE

thnks beau

Share this post


Link to post
Share on other sites
Xenobiologist

hi all is there a command in autoit

to get a device pid like this

'USB Mass Storage Device' 'USB\VID_05DC&PID_B013\0000141790' [REMOVEABLE

thnks beau

HI,

wha do you want to achieve? Maybe there is another way.

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites
n9mfk9

this is the part of the code i need

VID_05DC&PID_B013\0000141790

Edited by n9mfk9

Share this post


Link to post
Share on other sites
PsaltyDS

hi all is there a command in autoit

to get a device pid like this

'USB Mass Storage Device' 'USB\VID_05DC&PID_B013\0000141790' [REMOVEABLE

thnks beau

What you're looking for is DevCon.exe, which is a commandline device console. Very scriptable. I use it to install drivers on servers for things like the tape drive:

While (1)
        $HwId = '"SCSI\SequentialSONY____SDX-700V________"'
        $InfFile = '"' & @ScriptDir & '\sdx700\sait32.inf"'
        If Not FileExists($InfFile) Then
            MsgBox(16, "Error!", "Required file not found at:  " & $InfFile)
            ExitLoop
        EndIf
        $InstCmd = @ScriptDir & "\DevCon.exe"
        If Not FileExists($InstCmd) Then
            MsgBox(16, "Error!", "Required file not found at:  " & $InstCmd)
            ExitLoop
        EndIf
        $InstCmd = $InstCmd & " install " & $InfFile & " " & $HwId
        $RetCode = RunWait(@ComSpec & " /c " & $InstCmd, @TempDir, @SW_SHOW)
        If $RetCode = 0 Then
            MsgBox(32, "Success", "Sony SDX-700V tape driver installed successfully.", 10)
            ExitLoop
        Else
            MsgBox(16, "Error!", "Error installing Sony SDX-700V tape  driver, return code was: " & $RetCode)
            ExitLoop
        EndIf
    WEnd

Hope that helps! :)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
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
Sign in to follow this  

×