Move current download filke to specific folder

I want to get current download file in specific folder
Is str_FilePath is correct

image

@yogitagaikwad2206

check this as reference

Hi @yogitagaikwad2206

Try this

Regards,

Hi @yogitagaikwad2206

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)


Hi @yogitagaikwad2206

→ 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.