Forum Discussion

jeeejay's avatar
jeeejay
Contributor
14 years ago

Bug in aqFileSystem["GetFolderInfo"]

Hi,



I am using TestComplete 6.53 and we recently upgraded our scripts to make use of the methods offered by aq* instead of Utilities collection. I noticed a bug when I was trying to extract the 'Create Date' of a folder on the hard drive. The time returned is always 7 hours ahead.



To reproduce, please create a folder named 'New Folder' under C Drive and run the following function.



function NewFolderDate()

{

  var newFolder = "C:\\New Folder";

  Log["Message"](aqFileSystem["GetFolderInfo"](newFolder)["DateCreated"]);

  Log["Message"](Sys["OleObject"]("Scripting.FileSystemObject")["GetFolder"](newFolder)["DateCreated"]);                  

}



Really looking forward to hear from you.



Regards,

GJ


2 Replies

  • Hi David,



    Thanks for your reply ... our management wants to stick with version 6, so I'd better use the method offereed by File System Object.



    Regards,

    GJ