Hi,
I have a lotus script agent that is triggered to run after any new mail arrives, in the code it’s acting on all the unprocessed documents in the database. It has right to perform the full restricted tasks and it is stamped with the server ID. It is supposed to extract the IP address from the body of the memo, do a shell command in the DOS window, run a batch file, pipe out the out put to a file and attach the file to the memo. This code executes perfectly when I run the agent manually but does not run on the Notes server when the new mail trigger is used. I think this is a permission issue or may be Notes does not execute the Shell command in a DOS window on the server or not sure if the DOMINO console could run this command. I get no error message so not sure where the problem is. It’s a Windows 2003 server. Does some one know how to execute the SHELL command and run a batch file on a Notes server.
Here is a code snippet where I think there is a problem:
fileout%=Freefile()
Open “C:\nbtstat.bat” For Output As fileout%
Print #fileout%, “nbtstat -A” & VPNIPaddress & " > C:"& vTemp(0)& “PCName.txt”
Close
Doscmd$=Shell(“c:\nbtstat.bat”)
Sleep 5
Thanks,
Armand