jexd99
asked on
How to change a date on a file?
Can someone tell me how to change a date on a file? For example if a file called test.txt shows a 08-08-98 date, how can I make it 08-05-98?
Thanks
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the info.
procedure TForm1.Button1Click(Sender
var
Age,Handle:integer;
begin
Age:=FileDateTimeToFileDat
Handle:=FileOpen('Test.Txt
FileSetDate(Handle,Age);
FileClose(Handle);
end;
// Hope it work..
Motaz form Sudan.
motaz1@yahoo.com