jben Posted May 2, 2008 Share Posted May 2, 2008 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 More sharing options...
FreeRider Posted May 2, 2008 Share Posted May 2, 2008 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 Link to comment Share on other sites More sharing options...
jben Posted May 2, 2008 Author Share Posted May 2, 2008 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.. Link to comment Share on other sites More sharing options...
jben Posted May 2, 2008 Author Share Posted May 2, 2008 (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 May 2, 2008 by jben Link to comment Share on other sites More sharing options...
jben Posted May 2, 2008 Author Share Posted May 2, 2008 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 More sharing options...
ProgAndy Posted May 2, 2008 Share Posted May 2, 2008 (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 May 2, 2008 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now