Hallo Alexander, On Wed, 11 Aug 2004 18:52:57 +0200GMT (11-8-2004, 18:52 +0200, where I live), you wrote:
ASK> is there a macro (or some other solution) to test the existence of a file ASK> on disk? Something like "if exists 'c:\file\foo.txt" add it to the message, ASK> if its not there, don't do anything. Not that that I'm aware of. But there's a work around %AttachFile='c:\file\foo.txt' Will attach the file, when the file doesn't exist, it gives the text: Cannot find file c:\file\foo.txt So the only thing we need to do is redirect that output text. We can do that by using a variable I tested this with the macro below: %_NullText="%AttachFile='c:\file\foo.txt'"%- When the file is found, it'll be attached When the file isn't found the text 'Cannot find file c:\file\foo.txt' is assigned to %_NullText and as long as you don't use %_NullText anywhere else, you won't find its value in your message. -- Groetjes, Roelof The Bat! 2.13 "Lucky" Beta/4 Windows XP 5.1 Build 2600 Service Pack 1 1 pop3 account, server on LAN Disclaimer: Any opinion stated in this message is not necessarily shared by my budgies or rabbits. ________________________________________________ Current version is 2.12.00 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html