


StrPATH = Left(App.Path, InStr((InStr(3, App.Path, "\") + 1), App. 'checking whether the drive is local or mapped The following sample provides serial of the drive where your EXE is 'APi declarationĭeclare Function GetVolumeInformation Lib "kernel32" Alias "GetVolumeInformationA" (ByVal lpRootPathName As String, ByVal lpVolumeNameBuffer As String, ByVal nVolumeNameSize As Long, lpVolumeSerialNumber As Long, lpMaximumComponentLength As Long, lpFileSystemFlags As Long, ByVal lpFileSystemNameBuffer As String, ByVal nFileSystemNameSize As Long) As Long SDrive, vbNullString, 0, GetSerialNumber, _ĭrive = InputBox("Enter drive for checking SN") Lib "kernel32" Alias "GetVolumeInformationA" _īyVal lpFileSystemNameBuffer As String, _īyVal nFileSystemNameSize As Long) As Long If you do a search at this site or google or yahoo with your keywords, you should find many examples in VB6 that for the most part should be able to be converted to VBA.Private Declare Function GetVolumeInformation _ Either way, who are you to say something about or comment about a persons moniker/handle? So perhaps, Engineer.Saleh may have some of those initials and perhaps they were educated this way. It seems that his education was more in the theory of things than actual practice and there are a great many colleges/universities that continue to teach this way. Not saying that he could not get the job done EVENTUALLY, but his experience was nearly null. Private Function OpenSmart (drvnum As IDEDRIVENUMBER) As Long. Below is a function that retrieves the BIOS Serial Number using WMI. The only other method Ive heard of, is for SMART complient drives. Does anyone know of an API or any way of getting a computers BIOS serial number using VB code TIA, L.B. Using the same technique, but switching over to using the Win32BIOS class we can once again easily gather this information.

No prob, he had all the right initials after his name but come to find out he could not program in VB or any of the C varients worth a lick. As part of the same discussion as with my previous post VBA Get Processor Id the user also wanted to determine the PC’s BIOS Serial Number. Though wmic bios get serialnumber does return a sensible-looking value on my laptop, id trust the underlying machine about as far as a peg-legged grasshopper could kick it. On my system, wmic baseboard get serialnumber returns an obviously bogus number. When I was working with a unnamed company, they hired a guy nearly strait out of college at nearly double the amount of pay I was recieving. Motherboard ID doesnt seem to be reliable.

I thought about flagging your post but then I thought I would share a story with you, but who knows, someone else might come along and flag it.
