Function FindLastModified(strDir)
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set oFolder = objFSO.GetFolder(strDir)
Date = CDate("1/1/1950")
For Each oFile In oFolder.Files
If oFile.DateLastModified > Date Then
NewestFile = oFile.Name
Date = oFile.DateLastModified
End If
Next
FindLastModified = NewestFile
End Function
Posts tonen met het label vbscript. Alle posts tonen
Posts tonen met het label vbscript. Alle posts tonen
dinsdag 29 juli 2008
Find the last modified file in a directory - vbscript
Gepost door
PartyPete
op
03:18
0
reacties
Labels: Automation, QTP, vbscript
Abonneren op:
Posts (Atom)