I am trying to have a LS Agent create a directory on a Network Drive (Q:) The Domino Server is logged into the Network as ME with rights to write to all drives. It has the network drive Q: mapped. My agent is trying to create a directory (On schedule) and I get a path not found error. I can manually run the agent and it works fine.
my code in a nutshell…
Dim fpath As String
The following directory already exists.
fpath = "Q:\Joe\PDFConversion\Work\"
Tried with and without the following… same results…
'Chdrive “Q”
Again, tried with and without the following… same results…
Chdir "Q:\Joe\PDFConversion\Work"
Mkdir "Q:\Joe\PDFConversion\Work\" & "NewFolder"
I am listed in the run restricted and run unrestricted agents on the server document.
I tried running the agent as me, and as the server with run time security level 2 and 3.
Check the agent execution settings. It has to be set to 3, I think. You may also want to check the Security tab on the server document to make sure you have rights to do file system operations from the server.
try adding a line using Dir$ to check for the existence of the directory before trying to create the new folder. If you get the same error then it’s likely a permissions issue. When the agent runs it uses the account that the domino service is using, most likley a local service account. Check the event viewer on the destination server (where Q is mapped) to see if there is a an entry showing the failed audit in the security log at the same time the agent runs.
For some reason, I can’t open the securtiy log… Get a strange error something is missing… (Not a good sign!) I think it may be the local service account… Never thought of that… Now I have to talk to my network guys… Oh Joy!
Well, I was able to get the Domino Service running as ME. (On a different box same version of domino…) and tested again. Still receive path not found error. On this box, I was able to check the security log, No entry created for this. This is just whacked!!!
We decided to remove domino as a service and place it in the startup folder of the server. This eliminates the need for the “Net Use command” Also, running it as a service with a user ID we found the user ID needs admin rights to the box and if done this way, the server console is no longer visible on the desktop. We need it visible.
So we have this server using auto log in with an account that does not have admin rights and the Notes Server automatically startsom the startup folder. This seems to have made everyone happy and I can now finish this project.
well that’s basically what I was trying to explain (in not so many words) in my earlier post but I guess I was not specific enough. In any case, glad you are finally on the right track.