Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP 3.0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 8th, 2003, 03:14 PM
Registered User
 
Join Date: Jul 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to vitanza
Default #exec server directive

i have win2k and IIS 5 and i want to run an administrative script from an asp page. so in the beginning asp 3 book, it says i can use the #exec server directive.

i would type something like this on the command line:
cscript c:\scripts\dosomething.vbs

so would i do this in an asp page?


also, the book says i have to add a registry value called SSIEnableCmdDirective to use the cmd directive. would this be a key under the folder ..../Parameters or a REG_SZ in the folder ..../Parameters?

thanks in advance
  #2 (permalink)  
Old July 11th, 2003, 09:33 AM
Registered User
 
Join Date: Jul 2003
Location: Galway, na, Ireland.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Your almost there!

use the following in your asp.


you need to change/add the SSIEnableCmdDirective.

goto the microsoft link below to change the registry
http://support.microsoft.com/default...NoWebContent=1


You may want to look at the following page also!!

http://support.microsoft.com/default...en-us%3b308176

This basically tells you that #exec cmd etc... etc.. does not work with IIS 5.1

Happy coding..



scooley
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
undeclare-namespaces directive mphare XSLT 3 May 14th, 2008 11:16 AM
ErrorPage in Page Directive balesh.mind ASP.NET 2.0 Professional 1 August 10th, 2007 09:14 AM
missing directive with simple datagrid pbarbalias ASP.NET 1.0 and 1.1 Basics 1 October 17th, 2006 07:48 PM
Regex within a DirectoryMatch Directive someUser BOOK: Beginning Regular Expressions 1 June 6th, 2006 04:53 AM
Parser Error with Control Directive kasie .NET Web Services 0 July 24th, 2003 03:03 PM



All times are GMT -4. The time now is 09:02 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.