Dynamic Path

I want to download a CSV file from the drive and want to do an operation on that downloaded file for this I don’t want to give a static path for this file, I want a dynamic path, so can anyone share the workflow for this Please. And don’t share this approach Directory.GetFiles(“C:\Users\ashwi\Downloads”).OrderByDescending(Function(f) New FileInfo(f).CreationTimeUtc).First() because here file path (“C:\Users\ashwi\Downloads”) is hardcoded.

Please go through this link-
Get Download Directory Path

1 Like

Thanks :slight_smile:

Hi @Asmit_Anand1,

This will give your the current logged in user name,

“C:\Users\”+Environment.UserName+ "\Downloads\”

1 Like

Can you share a workflow for this if u have any ?

@Asmit_Anand1 Check attached file

Main.xaml (7.7 KB)