%@REGQUERY function

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Sep 11, 2012
57
1
#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
Code:
echo %@regquery["HKCU\Software\Adobe\Acrobat Reader\11.0\AVGeneral\cRecentFiles\c1\tDIText"]