>Whenever i use the mapi function in my project for sending emails.
>
>immedeately my default file location changes to this
>
>
>"c:\program files\common files\system\mapi\1033\nt" from "c:\myproject"
>
>Could you please tell me how to revert the default location back to "C:\myproject"
>
>Thank you very much.
Raj,
Save and restore your default :
lcDefault = sys(5)+curdir()
* do mapi
set defa to (lcDefault)
Cetin