@ALIAS[name] :  Returns the contents of the specified alias as a string, or a null string if the alias doesn't exist.

 

When manipulating strings returned by @ALIAS you may need to disable certain special characters with SETDOS /X. Otherwise, command separators, redirection characters, and other similar characters in the alias may be interpreted as part of the current command, rather than part of a simple text string.

 

Examples:

 

alias xyz=d:\path\myprog.exe -options

echo %@alias[xyz]

d:\path\myprog.exe -options