BIOS DATE

BIOS DATE

Postby Otto » Tue Mar 04, 2008 5:03 pm

Could someone show me how to get the BIOS date.
Thanks in advance
Otto
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Postby Biel EA6DD » Tue Mar 04, 2008 5:21 pm

Hi Otto, try this code.
Code: Select all  Expand view  RUN
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/
User avatar
Biel EA6DD
 
Posts: 682
Joined: Tue Feb 14, 2006 9:48 am
Location: Mallorca

Postby Otto » Wed Mar 05, 2008 7:08 am

Is CREATEOBJECT a xHarbour function?


Error: Unresolved external '_HB_FUN_CREATEOBJECT' reference

Thanks in advance
Otto
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Postby Antonio Linares » Wed Mar 05, 2008 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Silvio » Wed Mar 05, 2008 9:34 am

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

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Otto » 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
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 59 guests