Is there way to Highlight (Select) the newest file in some folder,
I got this code bellow to show me which newest file, But in my case i need to open folder then highlight which newest in it not just show name in MsgBox ...
Code: Select all
;author: wooly_sammot
;https://autohotkey.com/board/topic/59408-get-the-newest-file-in-a-folder/
Folder = C:\Folder ; change this to the actual folder
Loop, %Folder%\*
{
FileGetTime, Time, %A_LoopFileFullPath%, C
If (Time > Time_Orig)
{
Time_Orig := Time
File := A_LoopFileName
}
}
MsgBox, Newest file in %Folder% is %File%
Return