Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#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 follow-up: Changed 15 years ago by Jpm

  • Resolution set to Works For Me
  • Status changed from new to closed

That's working fine under my Vista/SP1 system

comment:2 in reply to: ↑ 1 Changed 15 years ago by anonymous

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 Changed 15 years ago by Valik

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