File Processor Connector Guide > 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 Data Synchronization task to rename files present in local file system:
    1. To create a Data Synchronization task, click Task Wizards > Data Synchronization, and then click New.
    2. In the Data Synchronization Task page, configure the following fields:
    Field
    Description
    Task Name
    Name of the Data Synchronization task. For example: FileProcessor_Rename
    Description
    Description of the Data Synchronization task. Maximum length is 255 characters.
    Task Operation
    Select Insert.
    3. Click Next.
    4. In the Source page, configure the following fields:
    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.
    5. Click Next.
    6. In the Target page, configure the following fields:
    Field
    Description
    Connection
    Select the File Processor connection.
    Target Object
    Select FileRename.
    7. Click Next.
    8. In the Field Mapping page, click Automatch.
    9. Click Validate Mapping.
    10. Save and run the Data Synchronization task.