[lazarus] Making calls to External Programs

2007-01-16 Thread [EMAIL PROTECTED]
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

Re: [lazarus] Making calls to External Programs

2007-01-16 Thread dhkblaszyk
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

Re: [lazarus] Making calls to External Programs

2007-01-16 Thread [EMAIL PROTECTED]
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

Re: [lazarus] Making calls to External Programs

2007-01-16 Thread Lee Jenkins
[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 --