Please help me with this issue, from download folder I want to move CSV file to the another folder.
Note: This is the file CSV name “Export-Shelfwise Inventory-_15112023154313” and in the file name you can see numeric number “15112023154313” this will change randomly on daily basis. common name is “Export-Shelfwise Inventory-”. based on common name I want to select the file and move to the another folder.
This code will give you the path of the latest CSV file in the specified folder. Use it in a assign activity. Replace your folder path variable with yourfolder_path variable
str_filepath = Directory.GetFiles(yourfolder_path, “*.csv”) _
.OrderByDescending(Function(d) New FileInfo(d).CreationTime) _
.FirstOrDefault()