• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Using ASPExec.Execute

B

badkneecap

Guest
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
 
Back
Top