Hi guys, i have made this script:
$File = _RecFileListToArray("C:\Test", "*.*", 1, 0, 0, 2, "", "")
If IsArray($File) Then
For $i = 1 To $File[0]
$Time = FileGetTime($File[$i])
$dmyyyy = $Time[2] & "/" & $Time[1] & "/" & $Time[0]
MsgBox(0,"FileDate", $File[$i] & " - " & $dmyyyy)
Next
EndIf
The script working with MsgBox, so i have try to write the result on a txt like this:
$ToWrite = $File[$i] & " - " & $dmyyyy
$Log = @TempDir & "\log.txt"
$LogCreate = FileOpen(@TempDir & "\log.txt", 1)
_FileWriteFromArray($LogCreate, $ToWrite)
FileClose($LogCreate)
But not working, i have only the filename but not the date. What is the problem?
Thanks for support