This topic is locked

VbScript within ASP from ASPRUNNER

2/16/2005 10:58:06 AM
ASPRunnerPro General questions
Pfeiffer author

Hello,

don't know wheter it's aa ASP-Runner Problem or a ASP-Problem.
I want to start Winword with vbscript within ASP-Runner-Sourcecode <%...%>
The following source-code

Dim WshShell

Set WshShell = CreateObject("WScript.Shell")

WshShell.Run "Winword" & _

"D:\Datenbanken\ATN\Mahnwesen\Mahnung_1.doc",2,true
works in a stand-alone vbs-script without problems.
Included in VBScript in ASPRUNNER nothing happens. No error is show but winword

is not started.
Any idea why ??
Uwe Pfeiffer

Sergey Kornilov admin 2/16/2005

Uwe,
I would recommend to put this code into a separate ASP file to make sure it working. You can move it to ASP pages generated by ASPRunner after that.
PS. Probably you need to use full path to Winword.exe.