Getting the excel name

hai
i need to extract the excel file name to move the to other folder. how to achieve this

Read the source folder files into a list with a filter for excel files.

excelfileList = Directory.GetFiles(foldername,”.xlsx”)

From this list you can move the file to the destination folder using Move File Activity.

Regards,
Karthik Byggari

Thanks for your reply…
Source folder contains only excel files should i get into a list

@soumi_soumiya

As @KarthikByggari mentioned, try that one and it will give you list of all excel files in that folder. (output is array of string)

Then use For Each loop to iterate that array of string and inside that use Move File activity to move one by one file.

2 Likes

Thanks for your reply

1 Like