p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning ASP 3.0 (http://p2p.wrox.com/forumdisplay.php?f=27)
-   -   #exec server directive (http://p2p.wrox.com/showthread.php?t=1393)

vitanza July 8th, 2003 03:14 PM

#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

scooley July 11th, 2003 09:33 AM

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


All times are GMT -4. The time now is 08:27 PM.

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