Move most recently downloaded zip folder

Hello, I know how to get the latest file in “Downloads” but need help with identifying and moving the latest downloaded zip folder to a different path (then unzip it at the new location, which I use bala.reva unzip and I’m ok with it), can someone please help?

Hi @lynnsong986 ,
Have you tried using the Move file Activity ?

strRecentFilePath =

new DirectoryInfo("YourPath").getfiles("*.zip").OrderBy(Function (f) f.CreationTime).Last().FullName

strRecentFolderPath =

new DirectoryInfo("PathToParentFolder").GetDirectories().OrderBy(Function (f) f.CreationTime).Last().FullName

Thanks so much as usual ppr!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.