I want to get current download file in specific folder
Is str_FilePath is correct
check this as reference
Here “*.xlsx” Remove quotes and rewrite it again.
Directory.GetFiles("C:\Users\Gaurav Sawant\Downloads", "*.xlsx")
.OrderByDescending(Function(d) New FileInfo(d).CreationTime)
.ToList()(0)
→ Use the For each file in folder activity to iterate the each file in the downloaded folder.
→ In the Filter by dropdown select the Created date newest first.
→ Inside for each insert an assign activity and create a variable called NewFile to store the CurrentFile
- Assign -> NewFile = CurrentFile.toString
→ After assign activity use break activity to break the loop.
The Newly downloaded file path will save in NewFile Variable you can it to move to other folder.
Check the below image for better understanding,
Hope it helps!!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.