I need help to rename pdf file with folder name.I have folder name with a Number, I have few pdf files to merge. After merging the pdf files, I have to rename the file name with Folder name. I have folders around 400.
Any suggestion to do this. Thanks in advance
lets say you have a root folder: filepath://dummypath/data , inside this folder you have your 400 folders.
- Assign - Folders = Directory.GetDirectories(“filepath://dummypath/data”) [data type= array of String]
- now use ForEach activity and loop through each folder where you have multiple PDF files, you can get that folder name using Path.GetFilename(item), save it in a variable which you can use while saving your merged PDF name.
- Inside above for each use assign and get all the files full path from it using Directory.GetFiles()
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.