Tag:Device name
-
VBScript finds the code of the device name according to the drive letter
Copy codeThe code is as follows: On Error Resume Next strComputer = “.” Set objWMIService = GetObject(“winmgmts:\\” & strComputer & “\root\CIMV2”) Set colItems = objWMIService.ExecQuery( _ “associators of {win32_logicaldisk.deviceid=’G:’} WHERE ResultClass=Win32_DiskPartition”) For Each objItem in colItems TargetIndex = objItem.DiskIndex Set Items = objWMIService.ExecQuery( _ “SELECT * FROM Win32_DiskDrive Where DeviceID Like ‘%” & objItem.DiskIndex […]
-
Python instant web crawler: API description
API description – Download gsextractor content extractor 1. Interface name Download content extractor 2. Interface description If you don’t want to use regular expressions, you’ll spend most of your time debugging web pages one by one, even if you don’t want to use regular expressions. If you want to extract many fields from a web […]
-
Typescript learning notes (IV) decorator
catalogue 1、 Function of decorator 2、 Class decorator 1. Ordinary decorator Extend properties and methods for classes Modify properties and override methods using decorators 2. Decorator factory 3、 Attribute decorator 4、 Method decorator Extending methods with method decorators 5、 Method parameter decorator 6、 Execution sequence of trimmer 1、 Function of decorator My personal understanding is:tsThe […]