Running wscript from server side agents

I’m trying to run a .vbe script on the server through a server side agent.

This is the code that invokes the script:


strShellScript = |wscript.exe “f:\lotus\data\tester.vbe” “7”|

taskID = Shell(strShellScript, 1)


The agent is either invoked thru the web on the form save or by calling the ?openagent URL.

When I run the agent through designer or by saving a form in Notes Client everything works OK (except for scheduling). When I try and the agent through the web I keep getting an error from the windows scipt host saying:

“Loading Script failed (Access is denied”). I run Norton anti-virus, but have tried it with script blocking switched off and still no joy… I am logged into the Windows 2000 machine as Administrator.

Anyhelp would be appreciated.

Regards,

Chris

Subject: running wscript from server side agents

You will find a lot of helpful information in the Agent FAQ for this common problem. Look at the security section, and you can also benefit from tips for web developers (you can get better messages from the browser). Start with “Troubleshooting agents in 6.0” article, but the rest of the FAQ might be very good to read as well.