Is there a function which permits to retrieve/exchange Date and Time of last modif. in any file. Somethig similar to the FWH SetFDate()/GetFTime() functions?
Thanks
Rafael
Chage Date/Time in a File
- Rafael Clemente
- Posts: 365
- Joined: Sat Oct 08, 2005 7:59 pm
- Location: Barcelona, Spain
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Rafael,
You can use Directory() to retrieve the date and time. Here you have a working sample:
You can use Directory() to retrieve the date and time. Here you have a working sample:
Code: Select all
#include "FWCE.ch"
function Main()
local oWnd
DEFINE WINDOW oWnd TITLE "DateTime"
@ 9, 2 BUTTON "Date-Time" ;
SIZE 210, 30 ACTION ShowDateTime()
ACTIVATE WINDOW oWnd
return nil
function ShowDateTime()
local aInfo := Directory( CurDir() + "\datetime.exe" )
if Len( aInfo ) > 0
MsgInfo( DToC( aInfo[ 1 ][ 3 ] ) )
MsgInfo( aInfo[ 1 ][ 4 ] )
endif
return nil
Last edited by Antonio Linares on Thu Dec 22, 2005 7:11 am, edited 1 time in total.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Rafael Clemente
- Posts: 365
- Joined: Sat Oct 08, 2005 7:59 pm
- Location: Barcelona, Spain