Append multiple file names

  • I have multiple files that contain data from a soon to be extinct application. Each file is named differently. I would like to keep the original file name but append the application name to the front. For example, 'xxx_yyyy_1.doc' would become 'application - xxx_yyyy_1.doc'. There are over 1,900 files and each xxx_yyyy part of the file name is different.

    Any help would be appreciated.

    Thanks.

  • You can either use a script task (use the FileInfo class of the IO namespace) or you can use the File System Task to rename the files.

    Use a For Each Loop to loop over all the files.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply