Re: Create a Shell Object in ASP
From: Aaron [SQL Server MVP] (ten.xoc_at_dnartreb.noraa)
Date: 07/09/04
- Next message: Aaron [SQL Server MVP]: "Re: User name from NT Account"
- Previous message: Bob Barrows [MVP]: "Re: Create a Shell Object in ASP"
- In reply to: Oliver Gräser: "Create a Shell Object in ASP"
- Next in thread: Oliver Gräser: "Re: Create a Shell Object in ASP"
- Reply: Oliver Gräser: "Re: Create a Shell Object in ASP"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Aaron [SQL Server MVP]: "Re: User name from NT Account"
- Previous message: Bob Barrows [MVP]: "Re: Create a Shell Object in ASP"
- In reply to: Oliver Gräser: "Create a Shell Object in ASP"
- Next in thread: Oliver Gräser: "Re: Create a Shell Object in ASP"
- Reply: Oliver Gräser: "Re: Create a Shell Object in ASP"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|