modFileTool 函式庫 風禹科技驗證有限公司 網站 提供 .Net 原始碼

myGetSerialNumber 函數

說明

取得磁碟機的序號

本函數之引數列表

引數 型態 位元組 選項 預設值 說明
hDriver String 2 可省略 c 磁碟機名稱

傳回值

傳回值為字串

範例

Debug.Print myGetSerialNumber("c") ' 傳回 17E6-1873 
Debug.Print myGetSerialNumber("d") ' 傳回 17E9-0D74

更進一步

本函數需參照數學工具模組的變數轉16進位,字串工具模組的 AddFormattoChar 函數

基本條件

Visual Basic 4 以後 | FileTool.bas

請參閱

modFileTool 函式庫