Forum Discussion

kandy1984's avatar
kandy1984
Contributor
7 years ago

Find the last modified folder in a directory and output the name of the folder

Hi,

 

I have directory and i want to output the latest created folder in testcomplete using vb script. How do i go about doing that? For example, in the attached image, i would like 4.11.0.123 to be output as log.message as it has the lastest date. Is there a simple way to approach this? 

 

Thanks for the help.

Sudha

  • AlexKaras's avatar
    AlexKaras
    Icon for Champion Level 3 rankChampion Level 3

    Hi Sudha,

     

    aqFileSystem.GetFileInfo() should help.