Not to be mean, but this seems like a test or assessment of some sort…
Usually, I would post the solution XAML here, but in this case, I’ll just explain one way to do this.
Convert the CSV into a dictionary (Step 1 read it to create a data table, Step 2 initialize a Dictionary Step 3 use a For Each Row Activity, to add every row of the data table to the dictionary, using the Invoke Method Activity, with the Add function)
Use “For Each” ad get al all items in the Directory, that has the items you want to rename
Inside the for each first figure out the name of the File, Get the first 5 letters and then use the “Move File” activity to move the file and rename it to Dictionary(first5Letters) + nameOfFile
There, that should be enough. Works perfectly for me
There are other ways of doing it but I think this one with the dictionary is pretty clean.
Feel free to ask any questions if you need more help or post your progress on here