RE: Re[2]: [sniffer] auto update tmp files
Bonno Bloksma <> wrote on Friday, September 23, 2005 2:44 AM: > C:\IMail\spool\tmp6C40.tmp > > As you can see the %1 is a complete path. So just Del %1 should do > the trick. Wow, thanks. I never thought of actually checking to see what the value of %1 was. I just assumed (I know...) that it was just the file name. This E-Mail came from the Message Sniffer mailing list. For information and (un)subscription instructions go to http://www.sortmonster.com/MessageSniffer/Help/Help.html
Re: Re[2]: [sniffer] auto update tmp files
Hi, I had trouble for a while with the "del %1" functionality, but I had a problem with the script running in the wrong directory. I [] Yeah, my script does explicitly enter the sniffer directory, and the line to delete the file is explicit as well: Del s:\imail\spool\%1 ...but that never worked. Maybe if I cd into the spool first it might It would not work because.. I have the %1 parameter in the email sent to me as part of the reporting. Using IMail 8.21 Here is what's in the email: Rulefile OK, updated C:\IMail\spool\tmp6C40.tmp As you can see the %1 is a complete path. So just Del %1 should do the trick. Groetjes, Bonno Bloksma --- [E-mail scanned at tio.nl for viruses by Declude Virus] This E-Mail came from the Message Sniffer mailing list. For information and (un)subscription instructions go to http://www.sortmonster.com/MessageSniffer/Help/Help.html
RE: Re[2]: [sniffer] auto update tmp files
Pete McNeil <> wrote on Thursday, September 22, 2005 11:24 AM: > On Thursday, September 22, 2005, 9:51:31 AM, John wrote: > >> Sorry I'm late. >> >> I had trouble for a while with the "del %1" functionality, but I >> had a problem with the script running in the wrong directory. I >> believe I added a "cd \sniffer2" type line and it worked thereafter >> like a charm. > > This is a common problem with program aliases in IMail. It is always > best to set the working directory at the top of any scripts that run > as a "program alias" so that there is no question where they are > running. I've learned that one the hard way a couple of times ;-) > > _M > > > > This E-Mail came from the Message Sniffer mailing list. For > information and (un)subscription instructions go to > http://www.sortmonster.com/MessageSniffer/Help/Help.html Yeah, my script does explicitly enter the sniffer directory, and the line to delete the file is explicit as well: Del s:\imail\spool\%1 ...but that never worked. Maybe if I cd into the spool first it might work, but it is working with current directive, which is: Del s:\imail\spool\*.tmp ...so I really don't have a compelling reason to test it. This E-Mail came from the Message Sniffer mailing list. For information and (un)subscription instructions go to http://www.sortmonster.com/MessageSniffer/Help/Help.html
Re[2]: [sniffer] auto update tmp files
On Thursday, September 22, 2005, 9:51:31 AM, John wrote: JS> Sorry I'm late. JS> JS> I had trouble for a while with the "del %1" functionality, JS> but I had a problem with the script running in the wrong JS> directory. I believe I added a "cd \sniffer2" type line and it JS> worked thereafter like a charm. This is a common problem with program aliases in IMail. It is always best to set the working directory at the top of any scripts that run as a "program alias" so that there is no question where they are running. I've learned that one the hard way a couple of times ;-) _M This E-Mail came from the Message Sniffer mailing list. For information and (un)subscription instructions go to http://www.sortmonster.com/MessageSniffer/Help/Help.html