Agent that creates a text file

I have a shared lotus Agent that exports documents into a file on c:\work\export.txt

Trigger: On Event

Action Menu Selection

Target: None

When I run this on the web from a button inside my form, it does not create the exported file. When I manually run this in the notes client, it runs successfully and creates the exported file in c:\work\export.txt

The button on the form contains this code:

@Command([ToolsRunMacro];“ExportOSR”);

I have used this same process in other applications with success. I am now using version 8.5.2. What could be the problem?

Subject: Sounds like access rights…

What ID is the agent signed with? Does that ID have the rights to cretae/access the file system? What are the security settings for the agent?

Subject: security settings for agent

Under the security tab in the agent, I have selected “All readers and above” and the runtime security level is set to 3=Allow restricted operations with full administration rights.

It is still not putting my document in the c:\Work\ directory.

Subject: Are you expecting it to put this on the machine running the browser?

If so your understanding about agents and browser security is all wrong.

I think you’ll find the file is being created on the server.