@ALIASNot in LE
Print Topic  Return to Overview  Previous Topic  Next Topic 

@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]

Topic "f_alias.htm" last edited 5/12/2008. ©2008  JP Software, Inc.
Keywords: @ALIAS,Alias