This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
' ================================================================================== | |
' UTF-8 のファイルのBOMを削除するVBScript | |
' ファイルをドラッグ&ドロップして利用する。 | |
' 2012/01/14 Nakamura, Tomohiro | |
' This Software is under CC0 | |
' ADODB の為、要Excel | |
' ================================================================================== | |
Dim adTypeBinary, adTypeText, adSaveCreateOverWrite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import _winreg as reg | |
import win32file | |
adapter_key = r'SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}' | |
def get_device_guid(): | |
with reg.OpenKey(reg.HKEY_LOCAL_MACHINE, adapter_key) as adapters: | |
try: |
NewerOlder