質問編集履歴
1
devcon.exe hwids =Bluetoothの出力内容追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
for /f "delims=" %%i in ('devcon.exe hwids ^=Bluetooth')で
|
6
6
|
|
7
|
-
1行取得して、一番長いハードウェアIDを利用したいと考えております。
|
7
|
+
1行ずつ取得して、一番長いハードウェアIDを利用したいと考えております。
|
8
8
|
|
9
9
|
下記のコードはHardware IDs:とCompatible IDs:の間のIDだけ取得するように記述しております。
|
10
10
|
|
@@ -156,4 +156,34 @@
|
|
156
156
|
|
157
157
|
###補足情報(言語/FW/ツール等のバージョンなど)
|
158
158
|
|
159
|
+
devcon.exe hwids ^=Bluetoothの出力内容は以下のようになっています。
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
USB\VID_04C5&PID_1330\5&1D2C357B&0&11
|
164
|
+
|
165
|
+
Name: Generic Bluetooth Adapter
|
166
|
+
|
167
|
+
Hardware IDs:
|
168
|
+
|
169
|
+
USB\VID_04C5&PID_1330&REV_0001
|
170
|
+
|
171
|
+
USB\VID_04C5&PID_1330
|
172
|
+
|
173
|
+
Compatible IDs:
|
174
|
+
|
175
|
+
USB\Class_e0&SubClass_01&Prot_01
|
176
|
+
|
177
|
+
USB\Class_e0&SubClass_01
|
178
|
+
|
159
|
-
|
179
|
+
USB\Class_e0
|
180
|
+
|
181
|
+
BTH\MS_BTHBRB\6&2BF38B4D&0&1
|
182
|
+
|
183
|
+
Name: Microsoft Bluetooth Enumerator
|
184
|
+
|
185
|
+
Hardware IDs:
|
186
|
+
|
187
|
+
BTH\MS_BTHBRB
|
188
|
+
|
189
|
+
2 matching device(s) found.
|