Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: syntax for info from registry  (Read 3546 times)

0 Members and 1 Guest are viewing this topic.

JMontana

    Topic Starter


    Starter

    • Experience: Beginner
    • OS: Unknown
    syntax for info from registry
    « on: February 18, 2011, 03:18:21 PM »
    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.

    TIA

    JMontana

      Topic Starter


      Starter

      • Experience: Beginner
      • OS: Unknown
      Re: syntax for info from registry
      « Reply #1 on: February 18, 2011, 08:11:01 PM »
      Thank 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 ?

      Salmon Trout

      • Guest
      Re: syntax for info from registry
      « Reply #2 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?



      Allan

      • Moderator

      • Mastermind
      • Thanked: 1260
      • Experience: Guru
      • OS: Windows 10
      Re: syntax for info from registry
      « Reply #3 on: February 19, 2011, 06:02:45 AM »
      Two posts from BillRich have been deleted from this thread.

      patio

      • Moderator


      • Genius
      • Maud' Dib
      • Thanked: 1769
        • Yes
      • Experience: Beginner
      • OS: Windows 7
      Re: syntax for info from registry
      « Reply #4 on: February 19, 2011, 07:40:48 AM »
      Thank goodness...
      For awhile i thought the OP was talking to himself... ;D
      " Anyone who goes to a psychiatrist should have his head examined. "

      JMontana

        Topic Starter


        Starter

        • Experience: Beginner
        • OS: Unknown
        Re: syntax for info from registry
        « Reply #5 on: February 19, 2011, 12:07:50 PM »
        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'

        ......

        Salmon Trout

        • Guest
        Re: syntax for info from registry
        « Reply #6 on: February 19, 2011, 12:22:10 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




        JMontana

          Topic Starter


          Starter

          • Experience: Beginner
          • OS: Unknown
          Re: syntax for info from registry
          « Reply #7 on: February 19, 2011, 03:59:35 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

          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]

          Salmon Trout

          • Guest
          Re: syntax for info from registry
          « Reply #8 on: February 19, 2011, 05:32:55 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.