Agent to write file on Domino Server

Hi

I try to create an scheduled agent to write text file on my Domino Server. At server console i receive this error message : Operation disallowed in this session. Do you know why ?

Here’s what i try`:

fileNum% = Freefile()

fileName$ = “d:\lotus\ExportNotes\data.txt”

Thanks

Subject: Agent to write file on Domino Server

Check who signed the agent, and do they have the rights to run an ubrestricted agent. Any agent trys to read or write to the OS must have Unrestricted Rights in the server document.

Subject: Agent to write file on Domino Server

Better try this one

FileNum = Freefile

Open “%pathandfilename.txt%” For Output As FileNum

HTH