Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Getting file Modified date

$
0
0
Good Morning,

I modified this code that I found on Autoit forums to display the information that I need, however there is one thing that I would like help with.

Is there a way to modify this, so that the code looks at all the files inside "folder2" and then have $b display the date of the most recently modified file?


Here is the code I have...

[ autoit ]      
Local $a = FileGetTime("C:\folder1\folder\testing1.txt", 0) Local $b = FileGetTime("C:\folder1\folder2", 0) local $c = FileGetTime("C:\folder1\folder3\testing2.txt", 0) Local $atd = $a[1] & "/" & $a[2] & "/" & $a[0] Local $btd = $b[1] & "/" & $b[2] & "/" & $b[0] Local $ctd = $c[1] & "/" & $c[2] & "/" & $c[0] If MsgBox(4, "Creation date of ...", "Update Files?" & @CRLF & @CRLF & "file1" & " -- " & $atd & @CRLF & @CRLF & "folder1" & " -- " & $btd & @CRLF & @CRLF & "file2" & " -- " & $ctd) = 6 Then _Copying() EndIf


Thanks

Grimm

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>