1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

%@REGQUERY function

Discussion in 'Support' started by Stein Oiestad, Apr 19, 2013.

  1. Stein Oiestad

    Joined:
    Sep 11, 2012
    Messages:
    55
    Likes Received:
    1
    I am trying to use the %@REGQUERY function to read the filename of the most recent file viewd in Adobe Reader XI.

    Using Windows REG.EXE as shown below I get the wanted result, but I cannot find the correct way of using the %@REGQUERY function to do the same.

    Code:
    reg query "HKCU\Software\Adobe\Acrobat Reader\11.0\AVGeneral\cRecentFiles\c1" /v tDIText /s
    Output:
    --------------------------------------------------------------------------------------------------------------
    HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\11.0\AVGeneral\cRecentFiles\c1
    tDIText REG_SZ /E/DocBoss/Archive/BatchPDF/BATCH-2013-04-19--08-47-11-080348.pdf

    End of search: 1 match(es) found.
    --------------------------------------------------------------------------------------------------------------
     
  2. JohnQSmith

    Joined:
    Jan 19, 2011
    Messages:
    560
    Likes Received:
    8
    Code:
    echo %@regquery["HKCU\Software\Adobe\Acrobat Reader\11.0\AVGeneral\cRecentFiles\c1\tDIText"]
     

Share This Page