Running Shell command in agent on server-help please

Hi,

I had a mapped drive on my lotus server(windows 2000 server) say Q: drive with some word documents. Now i had written scheduled agent in an application to set file permission on the document lying on my q: drive. The code is

Sub Initialize

filename = “Q:\test.doc”

i =Shell ( “cacls “”” + filename + “”" /E /G inybio:C" , 0 ) 'cacls is win2000 dos command to set file permission

End Sub

but this command is not running on mapped drive document. If i put the file on my c: drive then the file permission are set. can anyone tell what am i doing wrong…

Subject: RE: running Shell command in agent on server-help please

I guess your Domino service is running under windows’ SYSTEM account.

SYSTEM account doesn’t have the right to do anything outside local ressource (ie : local drive).

Tips: use PSEXEC (http://www.sysinternals.com/utilities/psexec.html) to execute your shell command. You will be able with this tool to use a local or domain account that will have the right to access shared drives.

Another way is to launch Domino service with a local account which is not SYSTEM. I don’t know side effects for this configuration.