Download and Unzip

studio

#1

Hi everybody, please, can you help me? How do I get a file that has been downloaded? This file changes its name every time I download. It is also .zip and want to do unzip?


#2

You can use the following to get the newest file from a directory - Just replace C:\temp with your download path. Assign this to a string variable

Directory.GetFiles("C:\temp").OrderByDescending(Function(f) New FileInfo(f).LastWriteTime).First()

Once you have the file path, you can look at extracting it.

There’s plenty of posts about it if you go for a search. This should be a start: