As the title says i am looking for a way to get the filename* of the most recently modified file in a directory and perhaps store it in a global string, any help would be greatly appreciated.
Example of my folder
C:\myfiles\file_randomstringhere.log
C:\myfiles\file_randomstringhere.log
C:\myfiles\file_randomstringhere.log