変更された日時に基づいて継続的に読み取りたいabc.txtというファイルがあります
私はこのように試しましたが、日付と時刻の変更に基づいてループでファイルをチェックしたかったのです。
Global $file
func filess()
$search = FileFindFirstFile("abc.txt")
if @error Then
MsgBox(0, "error", "failed to find first file")
Exit
EndIf
While -1
$file = FileFindNextFile($search)
If @error Then ExitLoop
ConsoleWrite("File:" & $file & @CRLF)
$time = FileGetTime($file,0)
$dmyyyy = $time[3]& ":" & $time[4] & ":" & $time[5]&'_'&$time[2]& "/" & $time[1] & "/" & $time[0]
MsgBox(0, "Modify date and time of file", $dmyyyy)
if @error Then
ConsoleWrite("Error getting time from " & $file & @CRLF)
EndIf
WEnd
Return $file
EndFunc
; Close the search handle
$mss=filess()