I'm creating a button which "abuses" rename scripting and processes the selected files.
For example, I may have selected 10 files which I want to open, read a number from and add the number to a running total.
After the 10 files have been read, I want to write the total to a new file.
Everything works just fine - except for the last bit: I don't know when the last file was read. How do I find out when I'm processing the last of the selected files? Or, alternatively, how do I get the number of selected files? I tried passing the {filecount} parameter, but it is not recognized.
(Yes, I could write all filenames to a temp file and then process that list in the rename script, but I'm looking for another way.)
It's probably easier to call the script normally (i.e. via a .VBS file if it's VBScript, and not from the Rename command), passing the filenames to it on the command line. Then it can process them all at once, whereas a rename script can only process each file in turn.
(Rename scripts can remember details about previous files using variables, but they have no way of knowing which files are still to come, or how many there are in total.)