File Processor Connector > File Processor Operations > Renaming files
  

Renaming files

You can use File Processor Connector to rename the local files. Use the FileRename object to rename the local files.

Renaming Files Example

You are a system administrator and want to rename files present in the local file system.
Perform the following steps to create a synchronization task to rename files present in local file system:
    1In Data Integration, click New > Tasks.
    2Select Synchronization Tasks, and click Create to create a synchronization task.
    The Definition tab appears.
    3Configure the following fields on the Definition tab:
    Field
    Description
    Task Name
    Name of the synchronization task. For example: FileProcessor_Rename
    Description
    Description of the synchronization task. Maximum length is 255 characters.
    Task Operation
    Select Insert.
    4Click Next.
    The Source tab appears.
    5Configure the following fields on the Source tab:
    Field
    Description
    Connection
    Select the flat file connection you created. For example: Conn_filerename_src
    Source Type
    Select Single.
    Source Object
    Select the file that contains the details of file to be renamed. The source file should contain actual file name column and new file name column. In both the columns specify the file name with the directory. For Example, E:\a_IOD\Files\File Processor\Source\Rename\sample_ren2.txt.
    6Click Next.
    The Target tab appears.
    7Configure the following fields on the Target tab:
    Field
    Description
    Connection
    Select the File Processor connection.
    Target Object
    Select FileRename.
    8Click Next.
    The Field Mapping tab appears.
    9Click Automatch on the Field Mapping tab to map source fields to target fields accordingly.
    10Click Validate Mapping to validate the mapping.
    11Click Save and then Finish.
    12From the Explore page, select the task, and click Actions > Run.
    In Monitor, you can monitor the status of the logs after you run the task.