Hi
Steve.....the code that I pasted was not directly from Sesame. I did it from the command line. Sorry about that.
2. Here is the correct syntax to handle the long file names.
Quote:var n as INT
n = @SHELL(@CHR(34) + "C:\Program Files\Microsoft Office\Office\outlook.exe" + @CHR(34) + " /c ipm.note /m recipient1@myplace.com")
and here is the correct syntax to handle the short file names:
Quote:var n as INT
n = @SHELL("C:\Progra~1\Micros~1\Office\outlook.exe /c ipm.note /m recipient1@myplace.com")
These test out OK for me using ElementExitEvent.
In reviewing your comments I found the following:
1. There was a space missing between /m and recipient. I have modified the original posting to reflect that change and to insert the space.
2. I also found that if I have three or more recipients, then it does not work at all! Curious since all recipients are in one string. I think that the semicolon delimiter might be causing a problem with @Shell.
3. But the multiple recipients can be handled with a batch file. I created a batch files with the following contents:
Quote:"C:\Program Files\Microsoft Office\Office\outlook.exe" /c ipm.note /m recipient1@myplace.com;recipient2@yourplace.com;recipient3@anyplace.com
which executed OK, all three recipients are in there. Using @Shell("batchfile.bat") works OK.
I will also change the syntax on my original posting to prevent any future confusion. Thanks for pointing out my error.