Very simple:
[Z:\]dir sample.txt /k /m
TCC: (Sys) The system cannot find the file specified.
"Z:\sample.txt"
[Z:\]Echo %@AltName[sample.txt]
Z:\sample.txt
And documentation for @AltName says (and I quote): "If the file does not exist, returns an empty string."
TCC 12.11.76 Windows 7 [Version 6.1.7601]
[Z:\]dir sample.txt /k /m
TCC: (Sys) The system cannot find the file specified.
"Z:\sample.txt"
[Z:\]Echo %@AltName[sample.txt]
Z:\sample.txt
And documentation for @AltName says (and I quote): "If the file does not exist, returns an empty string."
TCC 12.11.76 Windows 7 [Version 6.1.7601]