1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Using ASPExec.Execute

Discussion in 'Plesk for Linux - 8.x and Older' started by badkneecap, May 14, 2006.

  1. badkneecap

    badkneecap Guest

    0
     
    I'm trying to use "ASPExec.Execute" to run a dos program on my server. I've tried several different methods and just can't seem to get it to work. I believe it's because of a permissions problem. I have the following code:

    Executor.Application = "cmd /c "
    Executor.Parameters = "d:\...\createoutput.bat"
    strResult = Executor.ExecuteDosApp
    Response.Write "<pre>" & strResult & "</pre>"

    I know the batch file works because I can run it if I terminal into the server and execute it manually. If I use the following:

    Set server_shell = Server.CreateObject("wscript.shell")
    server_shell.Run("cmd /c d:\...\createoutput.bat")

    I get a permission denied. What permissions do I need to change to get this to work without compromising security?

    - PR
     
Loading...