I couldn't find a proper variable to use for the 'current' file being copied. Specifically the full path to the file. Just the NEWNAME, but that's not including the path.
So, as long as you're ok with hardcoding the source path (my example uses D:\temp\VisualCron\TCG ), this will work:
{PATH(GetFileNameWithoutExtension|{NEWNAME()})} {FILE(ModifiedTime|D:\temp\VisualCron\TCG\{NEWNAME()}|MMMM yyyy)}.xls
Basically we're still getting the file name without extension as you were before. Then using the File(ModifiedTime) to retrieve the modified date of the source file... but you have to specify the full path to the file, hence D:\Temp\VisualCron\TCG\{NEWNAME()} , and then formatting it how you did, then adding the .xls back.
I could have just been missing the existence of the actively being copied file variable, but i'm going to create a feature request to add a variable similiar to NEWNAME, that is SOURCENAME or something similar that contains the full path that can be manipulated by functions. That way you wouldn't have to hard code anything.
Brian
Edited by user
2016-05-12T15:01:24Z
|
Reason: Not specified