"Operation is disallowed in this session" error for scheduled agent

I have a scheduled agent that is supposed to run on the server and read a text file located in the Windows Share. Windows share created and my personal ID has a reading access to it. I mapped the drive letter to the network share on my machine. When I run agent manually it works.

When I schedule it to run from the server I am getting “Operation is disallowed in this session” error at filename$=Dir$(temp5)

So, how do I make it work?

P.S. There is also a Windows “Generic Account” created (with the password) and it has an access to this share. This user ID had been updated to allow logon from the server.

Subject: “Operation is disallowed in this session” error for scheduled agent

The windows shared drive mush have read rights for anyone- i.e. no passwords- I then use this syntax in my code.Open “\mywindowsshare02\EXPORT\LOTUSCONNECT\conmgsales.TXT”

works like a charm nightly.

Tom

Subject: “Operation is disallowed in this session” error for scheduled agent

Stan already answered you here.

http://www-10.lotus.com/ldd/nd6forum.nsf/DateAllThreadedweb/016ebc8527f519f3852574070060851e?OpenDocument

Subject: RE: “Operation is disallowed in this session” error for scheduled agent

well… Stan said that it’s not possible, but the other answer O got here gives me at least some clues…

Subject: “Operation is disallowed in this session” error for scheduled agent

What I’ve done when I need to map a network share and write a file is the following:

(1) The agent needs to be signed by a ID which has unrestricted access.

(2) I have had a network ID with a non-terminating non-changing password with access to the share

(3) The Lotus Script code maps the share using the above network ID and password

(4) Write the file

(5) Disconnect.

I am using shell commands to map the share as a drive:

net use m: \server\share /user:(userid) (password)