Hi,
I need to clean up the /tmp folder and erase various files and directories
that my App has created there.
Using Linux, can I call bash from within my App to 'rmdir'?
mail2web - Check your email from the web at
Two approaches possible. There are DeleteFile and DeleteDirectory
functions available in FPC/Lazarus. On the other hand you can also use
TProcess to run any external command from FPC. Please check the Lazarus
wiki which has an excelent article on how to use it.
Darius
Hi,
I need to clean up
Thanks FunkyBeast and Darius.
That is definately useful.
Original Message:
-
From: [EMAIL PROTECTED]
Date: Tue, 16 Jan 2007 15:41:08 +0100 (CET)
To: lazarus@miraclec.com
Subject: Re: [lazarus] Making calls to External Programs
Two approaches possible. There are DeleteFile
[EMAIL PROTECTED] wrote:
Hi,
I need to clean up the /tmp folder and erase various files and directories
that my App has created there.
Using Linux, can I call bash from within my App to 'rmdir'?
Davec,
Check out this link:
http://wiki.lazarus.freepascal.org/Executing_External_Programs
--