Are you sure the file name does not contain any invalid (":", etc)
characters?
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Justin" wrote in message
...
Hi All,
I have an issue with one of my users in relation to some code that gets
run
in outlook. Basically the code reads the subject line and then saves the
attachment to the "c:\temp\" directory on the users machine. The problem
is
that the code will work flawlessly on any other machine - ie it will save
an
attachment to "C:\temp\ddmmyyhhmm.rtf". For some reason it says it has
saved
the file, but when you check it is not there. I could run the code 100
times
a day and it will work 92 times without an issue and the file is saved in
the
temp directory, the other 8 times it will not be there. I can trap the
error
without an issue but i don't see why it won't see the drive.
Any thoughts - or is this one of those quirky things that just happens.
TIA
Justin