Opened 15 years ago
Last modified 15 years ago
#1183 closed Bug
FileSetTime can't set filetime — at Initial Version
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Milestone: | 3.3.1.2 | Component: | AutoIt |
Version: | 3.3.1.1 | Severity: | None |
Keywords: | Cc: |
Description
FileSetTime can't set filetime of a file. It seems that AutoIt can't find the file when located in a subdirectory.
It is an issue of the beta version. In AutoIt v3.3.0.0 everything
works fine.
Script used for testing:
$sFilename="C:\Test\file.zip"
If FileExists($sFilename) Then
MsgBox(4096, "Test", FileGetTime($sFilename, 1, 1))
MsgBox(4096, "Test", FileSetTime($sFilename, "20031101", 0, 0))
endif
$sFilename="C:\Test\NextLevel\file.zip"
If FileExists($sFilename) Then
MsgBox(4096, "Test", FileGetTime($sFilename, 1, 1))
MsgBox(4096, "Test", FileSetTime($sFilename, "20031101", 0, 0))
endif
Results: correct Timestamp, 1, correct Timestamp, 0
Comment: same file, same attributes
See similar forumpost:
http://www.autoitscript.com/forum/index.php?showtopic=101917&st=0&p=724083&hl=FileSetTime&fromsearch=1&#entry724083