running system commands from within ASP

From: Brad Pears (donotreply_at_notreal.com)
Date: 09/09/04


Date: Thu, 9 Sep 2004 15:11:12 -0400

What is the syntax for running say... a batch file (.bat) from within ASP?

For example... in MS Access you can say something like this...
----------------------------------------------------------
CurrentDBDir = "c:\"
ShellWait CurrentDBDir & "runthis.bat", vbNormalFocus
----------------------------------------------------------

This would run the "runthis.bat" file located in the c:\ directory...

How would one accomplish this same thing in ASP?

Thanks,

Brad



Relevant Pages

  • Re: adding assembly to windowsassembly through bat file
    ... gacutil was the way:) ... > I am creating an assembly which needs to be accessibly from an ASP ... > So i've made a batch file to do it. ... > assembly folder. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Server.CreateObject("Wscript.Shell")
    ... Its hard to run anything like that from a asp page for security reasons. ... The batch file reads a text file that has all of the ftp commands to get a ... asp page that shows how to accomplish this on Windows XP or Windows Server ...
    (microsoft.public.scripting.wsh)
  • Re: Error 800a0046 when trying to run a program
    ... If you have access to cmd.exe, that's about as far as ASP can ... If the batch file is trying to do something unauthorized, ... Are you positive that your iusr account is authorized to access cmd.exe? ... > Hello Ray, ...
    (microsoft.public.inetserver.asp.general)
  • Re: VB component works correctly only in debug mode
    ... >I have a Vb component which internally uses an exe to create a batch file, ... >I call the method of this component from my asp page. ... When I debug throught ... Does the fact that I run an exe ...
    (microsoft.public.vb.general.discussion)
  • VB component works correctly only in debug mode
    ... I have a Vb component which internally uses an exe to create a batch file, ... I call the method of this component from my asp page. ... When I debug throught ...
    (microsoft.public.vb.general.discussion)