Jump to content

FileGetTime issue


Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...