ExtractFile error in Win7

Hi All,

I have an auto agent to save some attachment to local disk. The code is all right when I run it manually, but it will crash Lotus Notes if I schedule it on local.]

  1. I grant the agent the security level as 3

  2. The code also runs good when I use Win XP, but now I upgrated the system to Win7 and it began to fail

  3. I grant the “temp” folder “Full control” access for “Everyone”

If ( o.Type = EMBED_ATTACHMENT ) Then

Call o.ExtractFile( "c:\temp" + o.Source )

End If

Thank you.

Subject: Please don’t cross-post

YOu already posted the same question here: http://www-10.lotus.com/ldd/nd6forum.nsf/d6091795dfaa5b1185256a7a0048a2d0/a28817173396ed2085257ca80043b515?OpenDocument

And as explained there, you should not hard-code the path to the temp folder, but use the environment variable from the operating system. In Windows 7 the location of the temp folder has changed.