الاساتذة خبراء منتدى البور وينتانا عندى عمل على سى دى اريد حمايتة يوجد فى اكسل حماية بطريقة معرفة رقم الهرد ديسكفهل فى البور بوينت هذه الامكانيةPrivate Declare Function GetEnvironmentVariable Lib "kernel32" Alias "GetEnvironmentVariableA" (ByVal lpName As String, ByVal lpBuffer As String, ByVal nSize As Long) As LongPrivate Declare Function GetSerialNumber Lib "DiskSerial.dll" (ByVal nDrive As Integer, ByVal lpBuffer As String) As LongSub RunMe()Dim MyDrive As StringWhoMe = "SystemDrive"MyDrive = String(255, 0)[A200] = ""GetEnvironmentVariable WhoMe, MyDrive, Len(MyDrive)If InStr(1, MyDrive, Chr(0)) > 0 Then MyDrive = Left(MyDrive, 2)End IfMySource = ThisWorkbook.Path & "\DiskSerial.dll"MyDestination = MyDrive & "\WINDOWS\system32\DiskSerial.dll"If Dir(MyDestination) = "" Then FileCopy MySource, MyDestination If Application.Wait(Now + TimeValue("0:00:03")) Then GetMeElse GetMeEnd IfEnd SubSub GetMe()Dim MySer As String * 99Call GetSerialNumber(0, MySer)Sheets("Welcom").[A200] = MySerEnd Sub