@Full and unquoted argument

Jun 8, 2013
98
0
Warsaw, Poland
Hello. I've got strange results.

Current directory is "Z:\PortableApps"
It is working fine in TCC/LE

Code:
[Z:\PortableApps]echo %@full[c:\Program Files]
Z:\PortableApps\Files\c:Program
It looks wrong. Even if quoting would be required.

TCC 17.00.69 x64 Windows 7 [Version 6.1.7601]

Merry Xmas :)
 

rconn

Administrator
Staff member
May 14, 2008
10,920
97
The quotes are not optional. What your syntax is saying is to return the full pathname of a file named "c:\program", using the path "Files", which since it doesn't have a drive or relative path will default to the current directory. So @FULL is returning what you requested.
 
May 20, 2008
9,187
60
Syracuse, NY, USA
While v16 also documents the need for quotes, it behaves a little better.
Code:
v:\> ver & echo %@full[c:\Program Files]

TCC  16.03.55  Windows 7 [Version 6.1.7601]
C:\Program Files