@FUNCTION[name] : Returns the definition of the specified user-defined function name as a string, or a null string if the function doesn't exist. When manipulating strings returned by @FUNCTION you may need to disable certain special characters with SETDOS /X. Otherwise, command separators, redirection characters, and other similar punctuation in the function may be interpreted as part of the current command, rather than part of a simple text string.




echo %@function[myfunction]


See the FUNCTION command.