Code: Select all
// Copy to same folder and add today's Date as a suffix.
Focus("List");#164;
selfilter "-01";
rename "b", "*.?.<date yymmdd> /e";
rename s, "-01/";Edited to include Focus Command.
Code: Select all
// Copy to same folder and add today's Date as a suffix.
Focus("List");#164;
selfilter "-01";
rename "b", "*.?.<date yymmdd> /e";
rename s, "-01/";But #165 (Copy here with suffix date now) does the same.Steadyhands wrote:I was wondering if this is the best way to do this? Could be a problem if you use Copy Here with Suffix Number on other files in the folder.
Code: Select all
// Copy to same folder and add today's Date as a suffix. #164; selfilter "-01"; rename "b", "*.?.<date yymmdd> /e"; rename s, "-01/";
Oh sorry, then you are right. But like you said you might have problems with selfilter "-01", I modified your code to this:Steadyhands wrote:No, #165 adds the date before the file extension. I like to add the date after the file extension so the original programs do not recognise the file as being associated.
Code: Select all
// Copy to same folder and add today's Date as a suffix.
#164;
setting HideFoldersInList;
sortby c, d;
sel 1;
rename "b", "*.?.<date yymmdd> /e";
rename s, "-01/";
Code: Select all
// Copy to same folder and add todays Date as a suffix.
Focus("List");#164;
selfilter "-01";
rename "b", "*.?.<date yymmdd> /e";
rename s, "-01/";BTW, I don't know about 2008 but today one can use copyas:Steadyhands wrote:
I like to add the date after the file extension
so the original programs do not recognise the file as being associated.
This is what I've been usingCode: Select all
// Copy to same folder and add todays Date as a suffix. Focus("List"); #164; //copy here with increment selfilter "-01"; rename "b", "*.?.<date yymmdd> /e"; rename s, "-01/";
For example for "Steadyhands":copyas
Creates copies named [original name]_backup_20100117.[original extension] if today is 17-Jan-2010:
copyas "*_backup_<date yyyymmdd>.?";
Code: Select all
// Copy to same folder and add todays Date as a suffix.
// * = basename
// . = dot
// ? = extension
// . = dot
// <date yymmdd> = 110429
copyas "*.?.<date yymmdd>";
Code: Select all
Focus("List");
Setting "BackgroundFileOps", 0;
#164; //copy here with increment
selfilter "-01";
rename "b", "*.?.<date yymmdd> /e";
rename s, "-01/";