用asp程序獲取硬盤序列號代碼:
<%
Sub ShowDriveInfo(drvpath)
Dim fs, d, s, t
Set fs = CreateObject("Scripting.FileSystemObject")
Set d = fs.GetDrive(fs.GetDriveName(fs.GetAbsolutePathName(drvpath)))
Select Case d.DriveType
Case 0: t = "未知"
Case 1: t = "可移動"
Case 2: t = "固定"
Case 3: t = "網絡"
Case 4: t = "CD-ROM"
Case 5: t = "RAM 磁盤"
End Select
s = "驅動器 " & d.DriveLetter & ": - " & t
s = s & vbCrLf & "序列號: " & d.SerialNumber
response.Write(s)
End Sub
call ShowDriveInfo("c:\")
%>
Copyright@ 2011-2016 版權所有:大連千億科技有限公司 遼ICP備11013762-3號 google網站地圖 百度網站地圖 網站地圖
公司地址:大連市沙河口區中山路692號辰熙星海國際2317 客服電話:0411-39943997 QQ:2088827823 37482752
法律聲明:未經許可,任何模仿本站模板、轉載本站內容等行為者,本站保留追究其法律責任的權利! 隱私權政策聲明