Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

csv file with 'old' and 'new' file name

$
0
0

Not sure how to write this in SSIS

I have a csv file, with 2 columns.  Column 1 is "old" file name, Column 2 is "new" file name.  The csv file looks like this
Photo12630.JPG,0734917.JPG
Photo12631.JPG,0279630.JPG
Photo12632.JPG,0743277.JPG

I have a folder with individual image files like this
Photo12630.JPG
Photo12631.JPG
Photo12632.JPG

I need to read each line of the csv file, and copy (or rename) the image file to the new file name
Photo12630.JPG  -->  0734917.JPG
Photo12631.JPG  -->  0279630.JPG
Photo12632.JPG  -->  0743277.JPG



Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>