8
0
Skriptentwickung/examples/VBS/Get-NewestFile.vbs
2024-01-24 16:42:38 +01:00

8 lines
249 B
Plaintext

Set GetRecentFile = Nothing
For Each objFile In objFolder.Files
If GetRecentFile is Nothing then
Set GetRecentFile = objFile
ElseIf objFile.DateLastModified > GetRecentFile.DateLastModified then
Set GetRecentFile = objFile
End If
Next