Pages: 1
RSS
run external program parameter help
 
I am trying to pass the subject (of the email) to a batch file by using 'run external program' and placing:
'C:\md5.bat %SUBJECT'
in the command line field.

The parameter (or any other parameter I try instead)is not expanded as I would expect. Can someone please help me please?

I read a similar discussion in tbudl but didn't understand how to implement the answer.

Thanks

using 3.5rc5
 
Due to a bug the file name isn't passed to the external program, the workaround is to create a new batch file that calls your real external program, this new batch file, let's call it c:\temprun.bat will be run as external command.
You create it with the 'export message' action, set is as export to plain text, no headers, with one line as template:
c:\md5.bat %attachments
and set it to overwrite the existing file.
As next action you set 'run external program' with the newly created batch file and you're done.

Works for all of v3
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
 
Thanks for your help, that works fine!
Pages: 1