Discover prolific usb to serial code 10, include the articles, news, trends, analysis and practical advice about prolific usb to serial code 10 on alibabacloud.com
Bought a root USB to RS232 serial line, Pl2303 chip. The sellers and the official all said does not support WIN8, but I do not believe in Win7 can use in the win8/8.1 will not be used up.The official latest version of the v1.9.0 driver description said that does not support the win 8/8.1, after the attempt does not support. Hardware can be identified but cannot be started (error
Code for reading the serial number of usb hdd (USB mobile hard disk Information)
Code, model, and split of the serial number of the usb hdd.
Visual Studio 2010 is successfully compiled.
Read the code, model and sub-position of the serial number of the USB HDD (USB removable hard drive).Compiled successfully with Visual Studio 2010.The code uses the relevant code in code
Js calls activeX to obtain the serial number of the USB flash drive. For more information, see.
The Code is as follows:
Function GetDIVORPIV (DIV){Var str;Var arrayDIV = new Array ();If (DIV. indexOf ("_")> 0){ArrayDIV = DIV. split ("_");Str = arrayDIV [1];}Else{Str = "";}Return str;}Function GetDIVandPIV (DIVPIV){Var strDIVandPIV;Var strDIVPIV = DIVPIV;Var ar
. Path! = ":")
{
BfResult = true;
}
}
}
Return bfResult;
}
Function ReadUsbSN ()
{
Var bfUsb;
BfUsb = CheckUsb ();
If (bfUsb = true)
{
Var locator = new ActiveXObject ("WbemScripting. SWbemLocator ");
Var computer = locator. ConnectServer (".");
Var properties = computer. ExecQuery ("SELECT * FROM Win32_USBHub ");
Var e = new Enumerator (properties );
Var arrayUsbSN = new Array (); // stores the serial number
Var intCount = 0;
For (;! E. atEnd (); e.
(){Var bfUsb;BfUsb = CheckUsb ();If (bfUsb = true){Var locator = new ActiveXObject ("WbemScripting. SWbemLocator ");Var computer = locator. ConnectServer (".");Var properties = computer. ExecQuery ("SELECT * FROM Win32_USBHub ");Var e = new Enumerator (properties );Var arrayUsbSN = new Array (); // stores the serial numberVar intCount = 0;For (;! E. atEnd (); e. moveNext ()){Var p = e. item ();Var strSN;Var uSerialNum;Var sn = p. DeviceIDIf (sn. inde
(filename) Return the last modification time of a file, reported by os.stat().>>> help(getctime)getctime(filename) Return the metadata change time of a file, reported by os.stat().At this time I created a file under the directory called NewFile>>> getctime("newfile")1522746383.716875# 我们可以看到返回的time是从某个时间到现在的秒数,如需阅读,我们需要time.ctime来转换>>> import time>>> time.ctime(1522746383.716875)‘Tue Apr 3 17:06:23 2018‘ # 这就是刚才创建的时间啦>>> help(time.ctime)ctime(...) # 查看文档 ctime(seconds) -> string Con
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service