[lazarus] Making calls to External Programs
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 http://mail2web.com/ . _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Making calls to External Programs
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 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 http://mail2web.com/ . _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Making calls to External Programs
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 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 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 http://mail2web.com/ . _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives mail2web - Check your email from the web at http://mail2web.com/ . _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Making calls to External Programs
[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 -- Warm Regards, Lee _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives