benlinkknilneb
Programmer
Hey all,
I am attempting to run a VBScript on my webserver when the user clicks a button. For some reason I was unable to add the script directly into my asp code... it's a mail send routine for Lotus Notes and it doesn't behave well with ASP. My workaround was to make a standalone script on the server (which runs fine when I manually execute it) and then make my ASP page call that script. It has to run on the server because it accesses a special account within Lotus Notes that is set up for this server... ie I can't use the individual users' Notes accounts.
Here's my ASP code:
As I said, the script that it is supposed to call works fine... but this code does NOT open the vbs file. Any suggestions?
Ben
The ships hung in the sky in much the same way that bricks don't. - Douglas Adams
I am attempting to run a VBScript on my webserver when the user clicks a button. For some reason I was unable to add the script directly into my asp code... it's a mail send routine for Lotus Notes and it doesn't behave well with ASP. My workaround was to make a standalone script on the server (which runs fine when I manually execute it) and then make my ASP page call that script. It has to run on the server because it accesses a special account within Lotus Notes that is set up for this server... ie I can't use the individual users' Notes accounts.
Here's my ASP code:
Code:
Dim objWShell
Set objWShell = CreateObject("WScript.Shell")
objWShell.CurrentDirectory = "{directory}"
objWShell.Run("SendMail.vbs '" & strSubject & "' '" & strBody & "' '" & strToAddr & "'")
As I said, the script that it is supposed to call works fine... but this code does NOT open the vbs file. Any suggestions?
Ben
The ships hung in the sky in much the same way that bricks don't. - Douglas Adams