21b47 version[]

Apr 2, 2011
1,462
10
54
North Carolina, USA
Code:
C:\Users\Galloway\Desktop\MoveAll Project]echo %@quote[%@SHFolder[0]\MoveAll Project\LOGs\%@name[%_batchname].LOG]
"C:\Users\Galloway\Desktop\MoveAll Project\LOGs\.LOG"

[C:\Users\Galloway\Desktop\MoveAll Project]echo %@version[%@quote[%@SHFolder[0]\MoveAll Project\LOGs\%@name[%_batchname].LOG]]
C:\Users\Galloway\Desktop\MoveAll Project\LOGs\.LOG

The string being passed to @version is quoted - but the string returned from version is not. Seem to be an error.
 
Apr 2, 2011
1,462
10
54
North Carolina, USA
The CHM says, in part, "
@VERSION[filename[,separator[,start[,force]]]] : Returns a serially "versioned" replacement for the file name. If the file doesn't exist, and force isn't set, @VERSION returns filename.

If filename is quoted, the returned filename will also be quoted (if necessary)."

No mention of if the file exists or not. Could the docs be changed then please?
 
Apr 2, 2011
1,462
10
54
North Carolina, USA
Just seems that if I pass a quoted string to any @function - then it should return the string quoted - unless it's something like @unquote or similar...
 
Similar threads
Thread starter Title Forum Replies Date
D Version 28 LIBRARY changes have side effects Support 3
Dmitry L. Kobyakov How to? How to remove the record of the old version of the Take Command? Support 9
D Documentation WebHelp lands at version 26 Support 4
fishman@panix.com HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
T Take Command 28: Lua reports version 5.4.0 (5.4.3 expected) [SOLVED] Support 1
S Issues with version v26.02.42 x64 Support 0
Joe Caverly Documentation COMMANDS in Version 27 help Support 8
C version help Support 3
R Inconsistency in @version's use of quotes Support 2
thorntonpg What is the latest version of everything Support 1
S Windows Server version not being detected correctly in TCMD 26RC2 Support 9
D Which is the latest version for Windows XP? Support 2
gentzel "Check for Updates" appears to be checking for old version Support 2
D Fixed @VERSION does not increment pre-fixed version numbers. Support 1
nikbackm TCMD 25 - Unregister older TCMD version Support 2
Stefan Hassel Installation file TC 24.02 Build 47 is actually version 25.00.1 Support 10
Joe Caverly What version and Windows OS are you using? Support 3
Dmitry L. Kobyakov From old version: had the setup's error been corrected? Support 6
R How to? Compare executables' version/build # including 123.456.789.01 Support 10
RChrismon How to? Copy TCMD.INI to New Version Support 7
vefatica Windows 10 version number? Support 6
H @ceiling @floor @int not working version 21.01.63 Support 9
B Everything version in Take Command build 39? Support 3
G Version 20.11 installed on Windows 10 problems Support 9
M ANSI is used to show files instead of OEM in version 17 to 19 ! Support 5
E How to? Create a portable version of TCMD to use on other computers w/o installation Support 4
fishman@panix.com Version 21.23 fails to install Support 4
E Fixed View command broken in version 21.0 build 22 Support 9
rconn News Take Command + TCC + TCC-RT Version 21 Public Beta (RC1) Support 0
R How to? Not have RT version show on start Support 3
Roedy WAD Version number Support 1
Craig Fitzgerald problem with executable extensons with TCC version 19.10.51 x64 Support 3
Jesse Heines How to? Everything Tool Not Working After Version 20 Installation Support 8
T Portable instructions for version 19 Support 7
cgunhouse Version 19.00.23 Crashes Support 16
vefatica Updater says wrong version Support 1
Sande Nissen TCC/LE version? Support 6
Mordachai Upgrades - can I skip version(s)? Support 2
D Version 18 changed the naming convention of TC's folder Support 5
D Started suggestions, not in this version (yet?) Support 1
fishman@panix.com How about updating the version shown when you upload a new one? Support 4
Joe Caverly PLUGINs and Version 17.0 Support 4
C Is 17.00.55 same as release version? Support 3
Jay Sage Version 17 Installer Leaves Multiple Copies of ShrAlias Support 48
M How to? Start the version of Take Command that I want... Support 7
B Help file problem with version 16 Support 2
T "Checking for a newer version" doesn't complete Support 18
Dan Glynhampton Fixed @version "force" flag not working, and unable to set separator Support 3
J Required version for Windows 8.1? Support 2
L Windows 8.1 version display Support 5

Similar threads