How to get latest zip file/folder from the list of zip files in same folder

Hello @Arjun1

You can do as below.

Directory.GetFiles(yourfolder_path,“*.zip”).OrderByDescending(Function(d) New FileInfo(d).CreationTime).Tolist(0)

yourfolder_path is the path of the folder.

Thanks

1 Like