batch file execution asp classic

后端 未结 2 2021
醉话见心
醉话见心 2021-01-23 10:27

I need help executing a batch file from a client (accessing via HTTP intranet executing using ASP Classic).

OS used:

  • Client (Windows XP) - Here is where th
相关标签:
2条回答
  • 2021-01-23 11:17

    Another option -- especially if you need to run these scripts under a different security context than IIS for folder/share access, running Admin-privileged commands, etc. -- is to set up a Windows Scheduled Task to run the script (without any associated schedule if it doesn't need one), and then call that task from the ASP page.

    Run a scheduled task from an ASP/IIS page

    It does require granting filesystem access to the IUSR account on the scheduled task file.

    0 讨论(0)
  • 2021-01-23 11:19

    From my experience WScript.Shell only really worked with IIS 5, might I suggest another way to execute the batch file:

    If you have access to SQL:

    How can I run sqlcmd.exe from an ASP page?

    If you can register a COM:

    http://www.shotdev.com/asp/asp-run-execute-exe/asp-execute-exe-wscript-shell/

    Source: Trying to launch photoshop with scripting

    0 讨论(0)
提交回复
热议问题