Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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..

Posted (edited)

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
Posted

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?

Posted (edited)

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

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
  • Recently Browsing   0 members

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