Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

21b47 version[]

Apr
1,811
17
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.
 
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?
 
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...
 
Back
Top
[FOX] Ultimate Translator
Translate