@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).


This is distinct from the function of @UNIQUE[] in that it retains the entire filename and only appends a version separator character and an ascending version number to the filename. @VERSION does not create the file; it just returns the next available version name.


@VERSION has four arguments:


filenameThe filename to "versionize" (required)
separatorThe version separation character (optional, defaults to ';'). Note that the TCC include list character is ;, so if you want to use ; in a filename, you will need to double quote the filename.
startThe starting version number (if necessary to add a version number; optional, defaults to '1')
forceThe flag to force versioning, even if the file doesn't exist (optional, defaults to 0 or FALSE).




echo %@version[myfile.txt]



echo %@version[myfile.txt]