Control code for file modified date/time?

I have a handy button that I use constantly to make a copy of a file and add a date/time stamp to it:

@nofilenamequoting Copy DUPLICATE WHENEXISTS=rename AS "{file|noext}_{date|yyyyMMdd}_{time|HHmmss}{file|ext}"
It's always bugged me that it uses the current date/time - I would prefer it used the file's modified date/time. There doesn't seem be control code in version 9.x of DOpus for getting a file's modified date/time - can anyone tell me if it is possible in version 10?

Thanks,

Yes.


You can use {modified} while renaming, but not while copying, unless you cheat and use the rename command to do other things.

Try this:

@nofilenamequoting Copy DUPLICATE WHENEXISTS=rename AS "{file|noext}tmp{file|ext}" Rename "{file|noext}tmp{file|ext}" TO "{file|noext}_{modified|D#yyyyMMdd}_{modified|T#HHmmss}{file|ext}" FILEINFO

Thanks - that works great.