registry

More advanced topics discussed.

Moderators: Susan Smith, admin, Gabriel

Post Reply
John
Posts: 555
Joined: Sun Apr 26, 2009 8:27 am

registry

Post by John »

:?: What's the best way to read the windows registry from within BR!?

-john
gtisdale
Posts: 218
Joined: Sun Jun 07, 2009 7:54 am
Location: Concord, Massachusetts
Contact:

Post by gtisdale »

David Blankenship wrote a routine brregister2.exe that will read or write registry values. I use it to find the installed location of Microsoft compliant installs such as WINWORD.exe using the following function is FNSNAP.

41850 DEF LIBRARY FNMSEXE$*100(L$) !:
! ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿!:
! ³ Returns the installed path of Microsoft programs such as ³!:
! ³ WinWord i.e. FNMSEXE$("winword.exe") ³!:
! ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ!
41860 EXECUTE "sys -W "&OS_FILENAME$(ENV$("PD")&"vol002\brregister2.exe")&" -B"&WSID$&" -N"&L$
41870 LET EXEFIL=1
41880 IF FILE(EXEFIL)>-1 THEN LET EXEFIL+=1 : GOTO 41880
41890 OPEN #EXEFIL: "name="&ENV$("PD")&"vol002\dbde"&WSID$&".txt",DISPLAY,INPUT
41900 DIM EXEFIL$*100
41910 LINPUT #EXEFIL: EXEFIL$
41920 CLOSE #EXEFIL,FREE:
41930 LET FNMSEXE$=EXEFIL$
41940 LET EXEFIL=0
41950 FNEND

The routine and documentation is in the BRG directory of the FTP site.


FNGeorge
John
Posts: 555
Joined: Sun Apr 26, 2009 8:27 am

Post by John »

oh thank you fnGeorge! Also I found that there is a windows command line tool called REG. Does anyone have any experience with it?

-John
John
Posts: 555
Joined: Sun Apr 26, 2009 8:27 am

Post by John »

Is BRRegistry2.exe better than Reg for any reason? Does it work on more operating systems or something?

-John
Post Reply