Re: Create a Shell Object in ASP

From: Aaron [SQL Server MVP] (ten.xoc_at_dnartreb.noraa)
Date: 07/09/04


Date: Fri, 9 Jul 2004 10:10:49 -0400

You need elevated permissions: Set Shell = CreateObject("WScript.Shell")

A better plan is to store the commands in a table or text file, and have a
batch file wake up on a schedule (say every minute) and run all the tasks in
the table or file. Then you don't have to worry about making your anonymous
web user an administrator of the box... just a thought.

-- 
http://www.aspfaq.com/
(Reverse address to reply.)
"Oliver Gräser" <epsilonrquadrat@gmx.de> wrote in message
news:ccm82p$695$07$2@news.t-online.com...
> Hej,
>
>
> I want to run batchfiles via the Shell, but accessible in the Browser
> via IIS. Actually, I'd like the server to start a command line ntbackup
> if a users selects to do so on an ASP in his webbrowser. Does anyone
> know how to create a shell object in an ASP?
>
> Thanks,
>
> Oliver


Relevant Pages

  • Re: Redirection issue
    ... 1- execute input commands from standard input, ... code to implement the redirection it does not work anymore. ... And it's not good shell behavior to echo commands anyway. ...
    (comp.lang.c)
  • Re: Redirection issue
    ... 1- execute input commands from standard input, ... the phrase "it does not work anymore" carries very little meaning. ... after compilation and execution of the shell with a simple command like ...
    (comp.lang.c)
  • vulnerabilities in scponly
    ... without allowing shell access. ... scponly makes no effort to verify the path to the scp or sftp-server ... arbitrary commands by simply uploading a file. ... However, if this is *NOT* the case, the user could execute arbitrary ...
    (Bugtraq)
  • Re: Redirection issue
    ... 1- execute input commands from standard input, ... "does not work" could be anything from not compiling, not executing, ... after compilation and execution of the shell with a simple command like ...
    (comp.lang.c)
  • Re: PYTHONPATH
    ... The error indicates the shell tried to execute a program named '1' and couldn't find one. ... Arthimetic expressions generally have to be wrapped in ) in bash: ... non-interactive shell with the --login option, it first reads and executes ... commands from the file /etc/profile, ...
    (comp.lang.python)