Running a script from ASP-page

Discussion in 'ASP General' started by DanC, Sep 26, 2005.

  1. DanC

    DanC Guest

    I need to run a script in a ASP-page.
    Everthing runs exect the script.

    Set objWShell = CreateObject("WScript.Shell")
    Set objCmd = objWShell.Exec("cscript /nologo c:\sss\sasysdag.js
    /addclass " & Request.Form("klas"))

    I get an error on the Exec-line. On the server it shows ASP-script
    access-denied.
    After closing the MS-script editor i get

    WshShell.Exec error '80070005' in the browser.

    Someone know a solution? Or anouther way to run that script?
    DanC, Sep 26, 2005
    #1
    1. Advertising

  2. DanC

    Steven Burn Guest

    http://aspfaq.com/show.asp?id=2091
    http://aspfaq.com/show.asp?id=2476

    --
    Regards

    Steven Burn
    Ur I.T. Mate Group
    www.it-mate.co.uk

    Keeping it FREE!

    "DanC" <> wrote in message
    news:...
    > I need to run a script in a ASP-page.
    > Everthing runs exect the script.
    >
    > Set objWShell = CreateObject("WScript.Shell")
    > Set objCmd = objWShell.Exec("cscript /nologo c:\sss\sasysdag.js
    > /addclass " & Request.Form("klas"))
    >
    > I get an error on the Exec-line. On the server it shows ASP-script
    > access-denied.
    > After closing the MS-script editor i get
    >
    > WshShell.Exec error '80070005' in the browser.
    >
    > Someone know a solution? Or anouther way to run that script?
    >
    >
    Steven Burn, Sep 27, 2005
    #2
    1. Advertising

  3. DanC

    DanC Guest

    I don't know if the first solution helped to solve the problem but it still
    not work after.

    After giving read and execute permissions to IUSR_computername to the folder
    WINNT the problem was solved.

    Tnx anyway!
    DanC, Sep 28, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John McGinty

    Running batch script from ASP.NET page

    John McGinty, Sep 28, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    769
    John McGinty
    Sep 28, 2004
  2. Steve Richter
    Replies:
    3
    Views:
    5,994
    =?Utf-8?B?RGVlcHRpIEthbGFrb25kYQ==?=
    Apr 26, 2005
  3. Benjamin Rutt
    Replies:
    2
    Views:
    934
    Peter Hansen
    Dec 20, 2005
  4. benwylie
    Replies:
    4
    Views:
    377
    Ralf Stolzenberg
    Oct 19, 2006
  5. Replies:
    2
    Views:
    147
    Sean O'Halpin
    Dec 17, 2008
Loading...

Share This Page