n9mfk9 Posted May 13, 2006 Posted May 13, 2006 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
Xenobiologist Posted May 13, 2006 Posted May 13, 2006 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
n9mfk9 Posted May 13, 2006 Author Posted May 13, 2006 (edited) this is the part of the code i need VID_05DC&PID_B013\0000141790 Edited May 13, 2006 by n9mfk9
PsaltyDS Posted May 13, 2006 Posted May 13, 2006 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
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