I'm not sure if you can do multiple files like that or not, never tried. However, what I typically do when I want something to happen to multiple files, I use a loop.
So your Job, if your only goal was to rename files, would consist of 2 tasks, and a loop. You use the output (list of files) from the "List Files" task, and go through each item one by one in a loop doing a Rename Files task.
1. Create New blank Job
2. Create "List Files" task, much the same way you did for your "Rename file" task with the same file mask, etc...
3. Create a "Rename File" task, and this is where the fun comes in 🙂
4. Create a Loop that just loops on the Rename File task above.
Assuming all my files are located in this path (VERY VERY VERY Case Sensitive). Case needs to match on both the List Files and the Rename tasks.
Path: d:\temp\Rename\
So, Create your "List Files" task as I mentioned. Then, create the "Rename file" task. The Rename File task will have the same exact folder as your List Files task, in my case "d:\temp\Rename".
The Real fun part though, is the "Include File Mask". Use this, substituting your path for what I have, separated by \\ instead of single \ :
{REGEX(Replace|{LOOP(CurrentValueX)}|d:\\temp\\Rename\\|)}What that does, is it takes the current value in the loop, and strips off the path, leaving only the file name :)
Now, go to your "Rename Settings" tab in the Rename File task. Leave the asterisk * on the 'New Name Mask' and check the box for "Post process mask with Variable"
Assuming you want whatever the file name was EXACTLY, appended with .20130108154700 at the end (or whatever the current time is, you'd use this String replace forumla:
{STRING(Replace|{NEWNAME()}|{NEWNAME()}|{NEWNAME()}.{DATEFORMAT(yyyyMMddHHmmss)})}Now, it looks scary, but its very simple. Its a basic string replace. The first instance of 'NEWNAME' listed is the string you want to modify. The 2nd instance of 'NEWNAME' is what part of 'NEWNAME' you wanted to replace, in this case I wanna replace all of it. The 3rd instance of 'NEWNAME' is how I want whatever I replaced to look. So, I still want to use the entire name of 'NEWNAME' and add .{DATEFORMAT(yyyyMMddHHmmss)} Which you already know.
See the screenshots lol. They'll help :)
Now, edit the job and go to the 'Tasks' tab. You should see your list files and your rename file tasks. Click the 'Add Loop' button. Name it whatever you want and make sure your rename task is listed in both dropdowns. Click the 'Loops Settings' tab.
Select the radio button for "For each x in y" and on the first line, put this:
{TASK(PrevTask,StdOut)}
What that does is takes the Previous task (your List Files) and uses its 'StdOut' output as the input. Press OK and save the loop, and then save the job.
Thats it, technically. I have screenshots, in order (skipped a few obvious steps i noted)
bbusse attached the following image(s):