AngelFireMateo
asked on
Delete Files
How can I delete files from delphi in Runtime???
Note: I don't want to use the winexec
regards
Ricardo
Note: I don't want to use the winexec
regards
Ricardo
Use DeleteFile('filename')
uses SysUtils;
....
// erase the file //
DeleteFile('C:/temporal/fi le.txt');
ensure that the file exists with the function
FileExists(filename: string): boolean;
and take care the file permissions if you are under NT.
....
// erase the file //
DeleteFile('C:/temporal/fi
ensure that the file exists with the function
FileExists(filename: string): boolean;
and take care the file permissions if you are under NT.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank's that's what I was looking for