Hello Alexander,
Wed, 11 Aug 2004 18:52:57 +0200 (12:52 PM EDT here) Alexander S. Kunz wrote:
> is there a macro (or some other solution) to test the existence of a
> file on disk? Something like "if exists 'c:\file\foo.txt" add it to
> the message, if its not there, don't do anything.
You can use the %GMP_FileExist function from the Gaijin Macro Plugin:
%_FILENAME="C:\bootlog.txt"%-
%IF:|%GMP_FileExist("%_FILENAME")|=|1|:|%-
%ATTACHFILE="%_FILENAME"|:||%-
You can download the newes version from: http://www.gaijin.at/tbpgmp.shtml.
--
Best regards,
Gaijin (http://www.gaijin.at/)
________________________________________________
Current version is 2.12.00 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html