#1183 closed Bug (Fixed)

FileSetTime can't set filetime — at Version 3

Reported by: anonymous Owned by:
Milestone: 3.3.1.2 Component: AutoIt
Version: 3.3.1.1 Severity: None
Keywords: Cc:

Description (last modified by Valik)

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

Change History (3)

comment:1 by J-Paul Mesnage, on Sep 17, 2009 at 6:10:43 PM

Resolution: Works For Me
Status: newclosed

That's working fine under my Vista/SP1 system

in reply to:  1 comment:2 by anonymous, on Sep 18, 2009 at 11:52:45 AM

Replying to Jpm:

That's working fine under my Vista/SP1 system

I'm working on XP/SP3. Times of File "C:\Test\NextLevel\file.zip" ist not changed and FileSetTime returns "0".

comment:3 by Valik, on Sep 18, 2009 at 4:48:40 PM

Description: modified (diff)
Note: See TracTickets for help on using tickets.