Hello dear guest!

Boot Land is a community driven site established since 2006 and focused on data recovery/backup boot disks, research of Windows 2000/XP/2003/Vista/7 install/deployment/antivirus tools, customizing Windows PE systems and even learning how to recover from disaster situations.

How about joining our boot disk community? So do it. Life's short!

  - You get free access to our newsletter with all the interesting buzz about boot disks
  - We share publicity revenue with everyone who wishes to participate at the forums
  - Publicity is never, never, never displayed to members (along with many other cool things)
http://boot-land.net/register

 
Reply to this topic
 USB Vendor ID's - How to find manufacturer, USB Vid database
Rating 5 V
post Mar 1 2007, 07:24 PM
Post #1
was_jaclaz
Finder   ******
Group: Advanced user

  Joined: 14-July 06 From: Gone in the mist

Posts: 7,224
Thank(s): 547


Italy


"pirates" down at msfn.org:
http://www.msfn.org/board/index.php?showto...3605&st=266
http://www.msfn.org/board/index.php?showto...3605&st=268

indirectly pointed me here:
http://www.usb.org/developers/tools

Where a file (usb.if) containing an "official" list of USB Vendors can be found:
http://www.usb.org/developers/tools/comp_dump

The list is supposedly maintained and kept up-to-date.

The format of the file usb.if is somewhat peculiar, so I wrote a small batch (Win2K/XP/2003 only) to convert it in a .csv file that can be opened/imported in any spreadsheet program, like OpenOffice.org or Excel.

CODE

@ECHO OFF
SETLOCAL ENABLEEXTENSIONS
SETLOCAL ENABLEDELAYEDEXPANSION

:: usbif2csv.cmd small batch file to convert file usb.if found here:
:: http://www.usb.org/developers/tools/
:: http://www.usb.org/developers/tools/comp_dump
::
:: that is a list of Vendor Id's (Vid) for USB devices
:: into a .csv file (directly importable in a spreadsheet)
::
:: by jaclaz http://home.graffiti.net/jaclaz:graffiti.net/
::
:: This file is licensed under my "CAREWARE" license
::


Set OriFILE=usb.if
Set DestFILE=usb.csv

IF NOT EXIST %OriFILE% (
More %~fx0 | FIND "::" | Find /V "More"
ECHO.
ECHO File usb.if NOT found!
PAUSE

GOTO:EOF
)

IF EXIST %DestFile% (
ECHO.
ECHO.
ECHO WARNING: File %DestFILE% will be deleted...
ECHO.
ECHO PRESS [CTRL+C] to keep it, any other key to go on.
PAUSE
del %DestFile%
)

For /F "tokens=1,* delims=^|" %%A in (%OriFILE%) DO (
CALL :ConvertBASE %%A
ECHO !HEXnum! %%B
ECHO "'!HEXnum!","%%B" >>%DestFile%
)
GOTO :EOF

:ConvertBASE
IF %1 gtr 65535 SET HEXnum=Out of Range &GOTO :EOF

SET /A Val4096=%1 / 4096
SET /A Mod4096=%1 %% 4096

SET /A Val256=%Mod4096% / 256
SET /A Mod256=%Mod4096% %% 256

SET /A Val16=%Mod256% / 16

SET /A Val1=%Mod256% %% 16

FOR %%C in (4096 256 16 1) DO CALL:HEXchar Val%%C

SET HEXnum=%Val4096%%Val256%%Val16%%Val1%
GOTO :EOF

:HEXchar
IF !%1!==10 SET %1=A
IF !%1!==11 SET %1=B
IF !%1!==12 SET %1=C
IF !%1!==13 SET %1=D
IF !%1!==14 SET %1=E
IF !%1!==15 SET %1=F
GOTO :EOF


For those interested in small batches, the file includes an easily reusable routine to convert from Decimal to Hex numbers.

Have fun. smile.gif

jaclaz
Attached File(s)
Attached File  usbif2csv.zip ( 890bytes ) Number of downloads: 649
 


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

The revenue from clicking on publicity at this post is given to was_jaclaz

.
+Quote Post

Reply to this topic
1 User(s) are reading this topic ()


  

Collapse

  Topic Replies Topic Starter Views Last Action
No new FindHWIDS - The INF searching HWID exporter
14 kickarse 5,377 Today, 06:52 PM
Last post by: kickarse
No New Posts HOW CAN RUN AVIRA RESUC DESK ISO IN AERO
AVIRA AND ISO FILES IN AERO STUDIO
0 ASDWASD 9 Today, 06:27 PM
Last post by: ASDWASD
No new Topic has attachmentsHow to place your own Boot screen in XP setup CD
17 Shirin Zaban 12,634 7th February 2010 - 11:49 PM
Last post by: Bob K.
No New Posts USBoot w/XPsp2 not booting after DiskCryptor system encryption
BSOD Stop Code = UNMOUNTABLE_BOOT_VOLUME
4 Zoso 1,295 6th February 2010 - 11:38 AM
Last post by: Wonko the Sane
No New Posts How to install GRUB2 on USB drive from within Windows
6 somanystars 630 5th February 2010 - 04:36 PM
Last post by: Wonko the Sane