FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour BIOS DATE
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
BIOS DATE
Posted: Tue Mar 04, 2008 05:03 PM

Could someone show me how to get the BIOS date.
Thanks in advance
Otto

Posts: 682
Joined: Tue Feb 14, 2006 09:48 AM
BIOS DATE
Posted: Tue Mar 04, 2008 05:21 PM
Hi Otto, try this code.
FUNCTION Main()
   LOCAL oLoc,oWmi,oLis, oBios
   oLoc := CreateObject( "wbemScripting.SwbemLocator" )
   oWmi:=oLoc:ConnectServer()
   oLis := oWmi:ExecQuery( "SELECT * FROM Win32_BIOS " )
   FOR EACH oBios IN oLis
      ?  oBios:Name,;
         oBios:ReleaseDate  //Release date of the Windows BIOS in the Coordinated Universal Time (UTC) format of YYYYMMDDHHMMSS.MMMMMM(+-)OOO.
   NEXT
RETURN NIL
Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
BIOS DATE
Posted: Wed Mar 05, 2008 07:08 AM

Is CREATEOBJECT a xHarbour function?

Error: Unresolved external '_HB_FUN_CREATEOBJECT' reference

Thanks in advance
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
BIOS DATE
Posted: Wed Mar 05, 2008 09:29 AM

Otto,

With current FWH 8.02 and xHarbour/Harbour, Biel's sample is linking and running fine

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
BIOS DATE
Posted: Wed Mar 05, 2008 09:34 AM

Antonio,
How we can make to have the atomic time ?

Best Regards, Saludos



Falconi Silvio
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
BIOS DATE
Posted: Wed Mar 05, 2008 10:41 AM

Thank you, Antonio. I missed:
echo $(HBDIR)\lib\HbWin32.lib + >> b32.bc

Could someone post pros and cons between the two methods?

oReg := TReg32():New( HKEY_LOCAL_MACHINE, "HARDWARE\DESCRIPTION\System", .f. )
uVar := oReg:Get( "SystemBIOSDate", "" )
oReg:Close()

Thanks in advance
Otto

Continue the discussion