Dynamic Path


#1

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.


#2

Please go through this link-
Get Download Directory Path


#3

Thanks :slight_smile:


#4

Hi @Asmit_Anand1,

This will give your the current logged in user name,

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


#5

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


#6

@Asmit_Anand1 Check attached file

Main.xaml (7.7 KB)