1.

Solve : syntax for info from registry?

Answer»

Hi all,

I need a return list of configured fonts in a database program.

For that I need a list of all the fonts marked in the data FIELD as 1 in the registry located at:

HKEY_CURRENT_USER
Software
FileMaker
8.5A
Fonts

Can someone put the total string together that I have to use to reach the list?

It's the command I have to use in a Send Event function in FileMaker.
But I'm stuck where to use the '/' or the '\' etc.

TIAThank you for the long list of possibilities and parameters.

Right now I have absolutely no clue how to put what together with what to reach the info I need....

Is it something like:

REG QUERY \HKEY_CURRENT_USER\Software\FileMaker\8.5A\Fonts....??

Do I need to put C:\ in front ? and is it HKCU instead of HKEY_CURRENT_USER ??

I never, ever did something like that before, never needed.... so I'm a bit at lost here....

If I could have the total string needed to retrieve the info in the command line, that would be a saver...

I tried some combinations, but I'm not completely at ease to try things out at command level and registry....

And an additional question: is it possible to have the result of the query saved in some KIND of text file ?TYPE

reg query HKEY_CURRENT_USER\Software\FileMaker\8.5A\Fonts

at the prompt. What do you get?


Two posts from BillRich have been deleted from this thread.Thank goodness...
For AWHILE i thought the OP was talking to himself... Quote from: Salmon Trout on February 19, 2011, 02:50:21 AM

type

reg query HKEY_CURRENT_USER\Software\FileMaker\8.5A\Fonts

at the prompt. What do you get?

'reg' is not recognized as an internal or external command, operable program or batch.

Same message when I remove 'reg'

......Quote from: JMontana on February 19, 2011, 12:07:50 PM
'reg' is not recognized as an internal or external command, operable program or batch.

what happens when you type

PATH

at the prompt?

Also, is this file present?

C:\windows\system32\reg.exe



Quote from: Salmon Trout on February 19, 2011, 12:22:10 PM
what happens when you type

PATH

at the prompt?
On the Win 2000
PATH=C:\WINNT\system32;C:\WINNT\System32\Wbem;C:\PROGRAM~1\COMMON~1\ODBC\FILEMA~1;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Oracle\win32

On the Win 7
See screenshot

Quote from: Salmon Trout on February 19, 2011, 12:22:10 PM
Also, is this file present?

C:\windows\system32\reg.exe

Yes on the Win 7, no on the Win 2000

[recovering disk space - old attachment deleted by admin]Quote from: JMontana on February 19, 2011, 03:59:35 PM
On the Win 2000
PATH=C:\WINNT\system32;C:\WINNT\System32\Wbem;C:\PROGRAM~1\COMMON~1\ODBC\FILEMA~1;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Oracle\win32

On the Win 7
See screenshot

Yes on the Win 7, no on the Win 2000

Ah... now you see fit to give some more information! At last! I was wondering when you would get around to divulging the OS. It seems there are in fact two.

Well, as far as I can see the reg command should work perfectly well in your Windows 7 situation, since (a) reg.exe is in c:\windows\system32, and (b) that FOLDER is (correctly) included in the PATH. Yet you say it does not? Is that right? If so, I am very surprised.

However, in the Windows 2000 situation you need to install the Support Tools from the Windows 2000 installation CD as reg.exe is not installed by default, instructions here:

http://support.microsoft.com/kb/301423

or if the CD is not to hand, get just reg.exe (in a zip archive) here

http://www.dynawell.com/download/reskit/microsoft/win2000/reg.zip

and unpack it to a folder listed in the PATH variable.


Discussion

No Comment Found