Permission Denied when tried to use Run method of WScript.Shell in ASP IIS

Discussion in 'ASP General' started by Aayush Dubey, Aug 13, 2004.

  1. Aayush Dubey

    Aayush Dubey Guest

    Hi,

    I cannot execute the batch file through my ASP page..The code is below


    Set WShShell = Server.CreateObject("WScript.Shell")
    s=WshShell.Run("c:\aayush\test.bat",1,False)

    the drive c: is a network drive (shared) also the application is kept
    on a folder which is shared too (but i think this dosent makes any
    difference)...I have set Execute permission for the application in
    IIS, Restarted the server many times. Please help ..

    Regards
    Aayush
     
    Aayush Dubey, Aug 13, 2004
    #1
    1. Advertisements

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. Bill
    Replies:
    3
    Views:
    874
  2. Kyle

    WScript.Shell Run Error

    Kyle, Jan 19, 2004, in forum: ASP General
    Replies:
    0
    Views:
    1,162
  3. Martin Danielson
    Replies:
    2
    Views:
    276
    Martin Danielson
    Feb 2, 2004
  4. gadya

    access denied to wscript.shell

    gadya, Sep 22, 2004, in forum: ASP General
    Replies:
    0
    Views:
    254
    gadya
    Sep 22, 2004
  5. Salty Dog
    Replies:
    4
    Views:
    1,190
    Salty Dog
    Feb 28, 2005
  6. Daniel Di Vita

    Wscript.Shell.run returns 254

    Daniel Di Vita, Apr 6, 2006, in forum: ASP General
    Replies:
    5
    Views:
    413
    Anthony Jones
    Apr 7, 2006
  7. LamSoft
    Replies:
    2
    Views:
    273
    LamSoft
    Aug 4, 2006
  8. stevewa
    Replies:
    2
    Views:
    704
    stevewa
    Aug 13, 2008
Loading...