Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 15 lines (14 sloc) 0.624 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' GetInstallDriveSerialNumber.rvb -- February 2010
' If this code works, it was written by Dale Fugier.
' If not, I don't know who wrote it.
' Works with Rhino 4.0.
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Option Explicit

Sub GetInstallDriveSerialNumber()
  Dim oFSO, oDrive, xSerial
  Set oFSO = CreateObject("Scripting.FileSystemObject")
  Set oDrive = oFSO.GetDrive(oFSO.GetDriveName(Rhino.InstallFolder()))
  xSerial = Hex(oDrive.SerialNumber)
  MsgBox Left(xSerial,4) & "-" & Right(xSerial,4)
End Sub
Something went wrong with that request. Please try again.