Get latest sub folder

Hello,

How to get latest sub folder from folder

need to know latest folder created

please assist

thanks

Hi @nikhil.chandre
Please use the below code

Directory.GetDirectories(“C:\Your\Parent\Folder”).OrderByDescending(Function(d) New DirectoryInfo(d).CreationTime).ToArray()

Hi @nikhil.chandre

Try this:

image

Hope it helps!!