TCC > Variables & Functions > Functions:
Comments (...)
@ASSOC[.ext[,u]] : Returns the file association for the specified extension. If the optional second argument u is specified, @ASSOC will look in HKCU\SOFTWARE\CLASSES.
Example:
echo %@assoc[.doc]
Help URL: http://jpsoft.com/help/index.htm?f_assoc.htm