Can I replace the attachment file when double chick attachment?
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?
|