- Feb
- 100
- 0
TCC 16.00.27 x64 Windows 7 [Version 6.1.7601]
TCC Build 27 Windows 7 Build 7601 Service Pack 1
Just been trying out the new @version function and it always returns a "versioned" copy of the filename even if the file doesn't exist:
I expected it to return "d:\foo.bar" as the file doesn't exist. If I use the optional force flag it doesn't seem to make any difference what I set it to:
I also can't seem to set the separator character. If I want to change it to an underscore for example, none of these work:
And finally, the second, third and fourth arguments are described as "optional", but if for example I try to use the first and fourth arguments omitting the second and third the function fails:
TCC Build 27 Windows 7 Build 7601 Service Pack 1
Just been trying out the new @version function and it always returns a "versioned" copy of the filename even if the file doesn't exist:
Code:
d:\>dir foo.bar
Volume in drive D is unlabeled Serial number is 6882:65c2
TCC: (Sys) The system cannot find the file specified.
"D:\foo.bar"
0 bytes in 0 files and 0 dirs
1,921,472,241,664 bytes free
d:\>echo %@version[foo.bar]
D:\foo.bar;1
I expected it to return "d:\foo.bar" as the file doesn't exist. If I use the optional force flag it doesn't seem to make any difference what I set it to:
Code:
d:\>echo %@version[foo.bar,;,1,0]
D:\foo.bar;1
d:\>echo %@version[foo.bar,;,1,1]
D:\foo.bar;1
I also can't seem to set the separator character. If I want to change it to an underscore for example, none of these work:
Code:
d:\>echo %@version[foo.bar,_,1,1]
ECHO is OFF
d:\>echo %@version[foo.bar,"_",1,1]
ECHO is OFF
d:\>echo %@version[foo.bar,`_`,1,1]
ECHO is OFF
And finally, the second, third and fourth arguments are described as "optional", but if for example I try to use the first and fourth arguments omitting the second and third the function fails:
Code:
d:\>echo %@version[foo.bar,,,1]
ECHO is OFF