View Single Post
  #2  
Old August 3rd 06, 07:00 AM posted to microsoft.public.outlook
Lanwench [MVP - Exchange]
external usenet poster
 
Posts: 651
Default Can I replace the attachment file when double chick attachment?



In ps.com,
typed:
I want to replace the attachment when double chick the attachment. I
use outlook form to do it.
Beause attachment read in outlook is not a cancelable event, I can't
do it directly.

I found outlook always store attachments file in directory:
"%USERPROFILE%\Local Settings\Temporary Internet Files\OLK*".
So if I want to replace the attachment when user double chick the
attachment, I can repalce the attachment file(will display) in that
directory.

I have some test, outlook allow me do that. But I meet two question:
First: the directory is different with each user, I always start with
the work I type before and end with a random value. How can I get the
exactly value of it in vbscript?

Second. When user chick the attachment, outlook will download the
attachment and save to the directory with the name: attachment
filename(number). If I have a attachment name "aaa.txt", it maybe save
with "aaa(10).txt". Can I get the exactly name of it?


Hi - unfortunately, I'm not sure I understand what it is you're trying to
do. You can't really control what happens to your mail once the user
receives it. Can you not just instruct the users to save the attachment
rather than merely opening it?


Ads