Copy Multiple Files add Date Stamp

Altair Forum User
Altair Forum User
Altair Employee
edited December 2017 in Community Q&A

I have the below.

 

Six input files to be copied to a folder that is a named export (ignore that it says email in the image.)  

 

This is not a problem and works just fine.

 

What I would like though is to add the date to each file name. (ex "Test" becomes "Test120517")

 

I know how to do this for a single file, but I'm unsure how to proceed with multiple files.

 

They do not work their way through a Workspace or Model just a simple copy.

 

Thanks-

Capture.JPG

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2017

    Craig,

     

    You can accomplish this by using either the standard process design (SPD) or the visual process Design (VPD)

    In a VPD configure the hub's File input processing to individually

    image

    Configure the distribution and add &[Source.name] macro followed by the date macro in the rename as box.

    image

     

    In SPD configure the input tab in the project editor to each in its own job

    image

    Add a copy distribution and add the &[source.name] macro followed by the date macro in the rename file as.

    image

    Regards

    Mo

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2017

    Craig,

     

    You can accomplish this by using either the standard process design (SPD) or the visual process Design (VPD)

    In a VPD configure the hub's File input processing to individually

    image

    Configure the distribution and add &[Source.name] macro followed by the date macro in the rename as box.

    image

     

    In SPD configure the input tab in the project editor to each in its own job

    image

    Add a copy distribution and add the &[source.name] macro followed by the date macro in the rename file as.

    image

    Regards

    Mo

    •  

      image

       

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2017

    •  

      image

       

    Kenjie Bermundo led me to the solution above.  Using [souce.name] in the rename field.