|
-
May 19th, 2005, 07:44 AM
#1
Thread Starter
Junior Member
How To Get Bios Info
I'VE GOT CODE TO FIND BIOS INFO ON WIN XP.
but that code is not working on win9x and 2000, too
-
May 19th, 2005, 08:41 AM
#2
Hyperactive Member
Re: How To Get Bios Info
Can you post your code here?
That might encourage people to try it and maybe find a solution for Win9x etc.
DaveBo
"The wise man doesn't know all the answers, but he knows where to find them."
VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15
-
May 20th, 2005, 03:39 AM
#3
Re: How To Get Bios Info
Curious:
What sort of Bios info?
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
May 20th, 2005, 03:56 AM
#4
Re: How To Get Bios Info
You may want to look into WMI, it comes nstalledwith Win2000 and above but, not with anything below, you'll have to check that they have it installed:
VB Code:
On Error Resume Next
Computer = "."
Set OutFile = CreateObject("WScript.Shell")
Const ForAppending = 2
Set FileSystem = CreateObject("Scripting.FileSystemObject")
Set TextFile = FileSystem.OpenTextFile ("c:\Win32_BIOS.txt", ForAppending, True)
TextFile.WriteLine
Set WMIService = GetObject("winmgmts:\\" & Computer & "\root\cimv2")
Set Items = WMIService.ExecQuery("Select * from Win32_BIOS",,48)
For Each SubItems in Items
TextFile.WriteLine "********************************************************************"
TextFile.WriteLine "BiosCharacteristics: " & SubItems.BiosCharacteristics
TextFile.WriteLine "BIOSVersion: " & SubItems.BIOSVersion
TextFile.WriteLine "BuildNumber: " & SubItems.BuildNumber
TextFile.WriteLine "Caption: " & SubItems.Caption
TextFile.WriteLine "CodeSet: " & SubItems.CodeSet
TextFile.WriteLine "CurrentLanguage: " & SubItems.CurrentLanguage
TextFile.WriteLine "Description: " & SubItems.Description
TextFile.WriteLine "IdentificationCode: " & SubItems.IdentificationCode
TextFile.WriteLine "InstallableLanguages: " & SubItems.InstallableLanguages
TextFile.WriteLine "InstallDate: " & SubItems.InstallDate
TextFile.WriteLine "LanguageEdition: " & SubItems.LanguageEdition
TextFile.WriteLine "ListOfLanguages: " & SubItems.ListOfLanguages
TextFile.WriteLine "Manufacturer: " & SubItems.Manufacturer
TextFile.WriteLine "Name: " & SubItems.Name
TextFile.WriteLine "OtherTargetOS: " & SubItems.OtherTargetOS
TextFile.WriteLine "PrimaryBIOS: " & SubItems.PrimaryBIOS
TextFile.WriteLine "ReleaseDate: " & SubItems.ReleaseDate
TextFile.WriteLine "SerialNumber: " & SubItems.SerialNumber
TextFile.WriteLine "SMBIOSBIOSVersion: " & SubItems.SMBIOSBIOSVersion
TextFile.WriteLine "SMBIOSMajorVersion: " & SubItems.SMBIOSMajorVersion
TextFile.WriteLine "SMBIOSMinorVersion: " & SubItems.SMBIOSMinorVersion
TextFile.WriteLine "SMBIOSPresent: " & SubItems.SMBIOSPresent
TextFile.WriteLine "SoftwareElementID: " & SubItems.SoftwareElementID
TextFile.WriteLine "SoftwareElementState: " & SubItems.SoftwareElementState
TextFile.WriteLine "Status: " & SubItems.Status
TextFile.WriteLine "TargetOperatingSystem: " & SubItems.TargetOperatingSystem
TextFile.WriteLine "Version: " & SubItems.Version
TextFile.WriteLine "********************************************************************"
Next
TextFile.Close
OutFile.Run "notepad.exe c:\Win32_BIOS.txt",1,True
Cheers,
RyanJ
-
May 20th, 2005, 10:44 AM
#5
Thread Starter
Junior Member
Re: How To Get Bios Info
Thanks!
But i already know this code. but this does not work on win98.
the bios serial no that is vital for me is returned as : 00000000
-
May 21st, 2005, 08:08 AM
#6
Re: How To Get Bios Info
 Originally Posted by arunendra
Thanks!
But i already know this code. but this does not work on win98.
the bios serial no that is vital for me is returned as : 00000000
It could be that WMI is not installed, I'll have to check on that.
Cheers,
RyanJ
-
May 25th, 2005, 06:07 AM
#7
Thread Starter
Junior Member
Re: How To Get Bios Info
if the problem could be solved by installing WMI then
how do i do it?
will it work on 98 m/c , too?
-
May 25th, 2005, 08:22 AM
#8
Re: How To Get Bios Info
 Originally Posted by arunendra
if the problem could be solved by installing WMI then
how do i do it?
will it work on 98 m/c , too?
Yes WMI will work on Win98, I'm using Win98 and have WMI installed so, I suppose it must 
And you can get it from the MS Download center.
Actually, on further inspection there is no need to have to install this on every computer you would use it on, you can simpley use the WMI Redistributable Components version 1.0 
Cheers,
RyanJ
-
May 26th, 2005, 06:51 AM
#9
Thread Starter
Junior Member
Re: How To Get Bios Info
thank you!
i suppose this will work on 98 to get me the bios serial no!
for the time being i'm usin the RESOLED symbol!
-
May 26th, 2005, 02:08 PM
#10
-
May 26th, 2005, 11:58 PM
#11
Lively Member
Re: How To Get Bios Info
hi there is a software api viewer using that you can do code on win 98 also
Try this one
-
May 27th, 2005, 05:51 AM
#12
Thread Starter
Junior Member
Re: How To Get Bios Info
dear skv_noda!
I think u have forgotten to post the Code!!!!!
-
Jun 15th, 2005, 04:47 PM
#13
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|