Jump to content
Sign in to follow this  
jben

FileGetTime issue

Recommended Posts

jben

Hey everyone. Does anyone know if its possible to do something like the following:

$time=FileGetTime ($file,3)

I'm trying to use $file within my FileGetTime, rather than having to define the location of the files. I'm searching through several files, therefore I believe this is the best way, but it just doesn't like the code, maybe I have done something wrong?

thanks

Share this post


Link to post
Share on other sites
FreeRider

Hi jben,

Option 3 does not exists... See help file

[optional] Flag to indicate which timestamp

0 = Modified (default)

1 = Created

2 = Accessed


FreeRiderHonour & Fidelity

Share this post


Link to post
Share on other sites
jben

Option 3 works for me. When I use Option 2 I don't get the modified time. If I use option 3 then I get the modified time on an XP machine..

Share this post


Link to post
Share on other sites
jben

Deffinately sure about that. Just tested...Option 3 gives me the modified time..which is interesting.

0 gives me the modified time to. I guess because Option 3 doesn't exist it just uses the default 0..

Edited by jben

Share this post


Link to post
Share on other sites
jben

Nevermind my silly mistake.

But I still have the same issue because my code doesn't recognize the $file

$time=FileGetTime ($file,0)

I have a feeling that I have coded this wrong?

Share this post


Link to post
Share on other sites
ProgAndy

What*s the value of $file?

Is It From FieFindnextFile? Then you have to add the path.

When you use _FileListToArray, you have to add it, too

Edited by ProgAndy

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×