rset=Windows-1252">

#exec

The #exec directive instructs the Web server to run the specified application or shell command and send the output (standard output or ISAPI WriteClient data) to the client browser. You must surround a directive with HTML comment delimiters.

This directive can be used only in HTML pages; it cannot be used in ASP pages.

Syntax

<!-- #exec CommandType = CommandDescription -->

Parameters

CommandType

Specifies the type of command. The command type can be one of the following:

Command Type Meaning
CGI Runs an application, such as a CGI script, ASP application, or ISAPI application. The CommandDescription parameter is a string that contains the virtual path of the application, followed by a question mark (?) and any parameters passed to the application. Parameters are separated by plus signs (+). Because running an ISAPI application is only part of processing the SSI document, an ISAPI application is restricted as follows:

Any application attempting to send a URL or redirect through ServerSupportFunction will cause a message to be placed in the HTML stream, but the send-redirect will not be performed.

The SSI interpreter (Ssinc.dll) will wait indefinitely for applications returning HSE_STATUS_PENDING unless ServerSupportFunction is called to finish the session.

CMD Runs a shell command. The CommandDescription parameter is a string that contains the full, physical path of the shell program, followed by any command-line parameters separated by spaces. If the full path is not specified, the Web server searches the system path. This directive is disabled by default because it poses a security risk to your Web site; for example, a user could run the format command to erase your hard disk. To enable it, add the SSIEnableCmdDirective entry to the registry and set the value to TRUE. For general information on using the registry, see Registry.


© 1997-1999 Microsoft Corporation. All rights reserved.

<%@ LANGUAGE = JScript %> Functions Server Side Functions

The function "PrintOutMsg" prints out a specific message a set number of times.

<% var intTimes ; //Call Function. intTimes = PrintOutMsg("This is a function test!", 4); //Output the function return value. Response.Write("

The function printed out the message " + intTimes + " times."); %> 12/25/05 00:34:51 LOG FILE STARTED 12/25/05 01:29:53 [17BEE0BF83CE4B709711C328ECCAEA75.MAI] from (SMTP) [SMTP:Jeff@Jeff-Owen.com]->[SF:JeffOwen/Jeff] Mapped Literal 12/25/05 01:30:52 [483CCA92B284482EACBE7A5CFEAD05DC.MAI] from (SMTP) [SMTP:Jeff@Jeff-Owen.com]->[SF:JeffOwen/Jeff] Mapped Literal 12/25/05 01:31:52 [DFC2A8E043344F06AEA3B4DBF850F792.MAI] from (SMTP) [SMTP:Jeff@Jeff-Owen.com]->[SF:JeffOwen/Jeff] Mapped Literal 12/25/05 01:42:52 [740C1A7B8B7D45ACA242208190FA3A90.MAI] from (SMTP) [SMTP:Jeff@Jeff-Owen.com]->[SF:JeffOwen/Jeff] Mapped Literal 12/25/05 01:44:52 [24E01F680A8E4E24B9D9EAB5A1EB717C.MAI] from (SMTP) [SMTP:Jeff@Jeff-Owen.com]->[SF:JeffOwen/Jeff] Mapped Literal 12/25/05 01:46:52 [5CE6DD631DF546B69E98967F8991EEE9.MAI] from (SMTP) [SMTP:Jeff@Jeff-Owen.com]->[SF:JeffOwen/Jeff] Mapped Literal 12/25/05 01:47:52 [DB32114AA59B472C9E740C0A2876A633.MAI] from (SMTP) [SMTP:Jeff@Jeff-Owen.com]->[SF:JeffOwen/Jeff] Mapped Literal 12/25/05 01:48:52 [12D7E3E079A046E8986F89FE3A512B18.MAI] from (SMTP) [SMTP:Jeff@Jeff-Owen.com]->[SF:JeffOwen/Jeff] Mapped Literal 12/25/05 01:51:52 [220F034AF6204E35B98559AA8E6A3A51.MAI] from (SMTP) [SMTP:Jeff@Jeff-Owen.com]->[SF:JeffOwen/Jeff] Mapped Literal 12/25/05 01:56:52 [32518B06E1494A58A5B874209C0DA2BB.MAI] from (SMTP) [SMTP:Jeff@Jeff-Owen.com]->[SF:JeffOwen/Jeff] Mapped Literal 12/25/05 01:57:52 [9DA1C7204EF847EC8A7A0C991CDCF696.MAI] from (SMTP) [SMTP:Jeff@Jeff-Owen.com]->[SF:JeffOwen/Jeff] Mapped Literal 12/25/05 01:58:52 [35C64B658C84493E9A0A3C6EEC841CB9.MAI] frBM86(  џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ„‚„„‚„„‚„„‚„„‚„„‚„„‚„„‚„„‚„„‚„„‚„„‚„„‚„„‚„џџџ„‚„џџџџџЦУЦџџЦУЦџџЦУЦџџЦУЦџџЦУЦџџ„‚„џџџ„‚„џџџЦУЦџџЦУЦџџЦУЦџџЦУЦџџџ„‚„џџџџџЦУЦџџЦУЦџџЦУЦ‚„‚„‚„‚„‚„‚„‚„„‚„џџџЦУЦџџЦУЦџџЦУЦџџ‚„ЦУЦџџЦУЦџџ‚„„‚„џџџџџЦУЦџџЦУЦџџЦУЦ‚„џџ‚„ЦУЦ‚„‚„„‚„џџџЦУЦџџЦУЦџџЦУЦџџ‚„ЦУЦџџ„‚„џџ‚„„‚„џџџџџЦУЦџџЦУЦџџЦУЦ‚„џџџџџџџџџџџџџџџ‚„„‚„џџџџџџџџџџџџџџџџџџџџџџџџ‚„‚„‚„‚„‚„‚„„‚„ЦУЦџџЦУЦџџЦУЦџџЦУЦ„‚„‚„„‚„„‚„‚„џџџџџџ„‚„ЦУЦџџЦУЦџџЦУЦ„‚„џџџ‚„џџџџџџ‚„џџџџџџџџџ„‚„„‚„„‚„„‚„„‚„џџџџџџџџџ‚„‚„џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ3ˆл"№v ™y#7Уp|vёxL hƒX РЃШ7X§ C:\WINNTа7TЧА‚(Љl6H^D%DS џŒXƒџџџџ@єL"tCŒ и›є'Р џџџџќ/№(Ah Ф –МuL+„‘`(0дЬ–ф%шќhјЄЧДР pшШм€ј№\ѓtяд ,ЪœQq@0sЈsЄ8`˜ю4.@(ђфф?џџџџ$0rаэчь_м`HцЌъŒыœжџџџџќіџџџџФпŒ,џџџџья` фКџџџџџџџџџџџџФЯ(nИШnиЬ џџџџєм˜\pрЂpР ЎH#Hўј!,еˆЌœ0ќœLјd1H є2„PЄRм?LSџџџџ<Р<џџџџџџџџш=д фhgєgd PJА>џџџџtq|X"Œr8 Ј$ХџџџџџџџџXsьxœžHh|/xhpѕќKK NЬYpЌяШЈќШTTИU8БШЙјTИ | En(ŒExnђДєИpˆЌBџџџџ ЬSHџџџџ( џџџџџџџџџџџџџџџџx7\Wџџџџ8fИsŒVXќМTadіј]X^Є§0љ ?иVPИФXXјWˆX(XќXJ P=,XTЎ<OЬz8>Ш7`>2ˆ>xЬLdиŒ Ќџџџџџџџџl8x{џџџџџџџџџџџџ-ИЛPн |џџџџ@8X№MŒдњ D№рИXшXаЏИR,,lAџџџџЈ*P=|Xxмўџџџџ8ФФ|9ЈџџџџмT 4 -џџџџ|еиitРј6џџџџџџџџРL;џџџџ/№Ў|:”PПџџџџ€ёLЄЌЄьBџџџџ  Ш шpˆT˜)ДѓмїШ№Є Hxs0ќh.И4€,№s„ ˆ5џџџџџџџџ0Єќ џџџџ№8џџџџ tџџџџџџџџЈ ˜ џџџџџџџџ@ „ŠlџџџџќџџџџџџџџдюєŒT‹џџџџмœўаЉМў<џџџџЄZьU„[џџџџџџџџXџџџџџџџџџџџџ№L 0жДУШіџџџџџџџџ€tМ­а]eєџџџџlLєа!џџџџџџџџџџџџџџџџH4ЁЌ.ЬииџџџџLЂ8,8єўŒ!М^x 1ш(йџџџџўœїџџџџ0уџџџџмќ dгДРvДоџџџџџџџџшL @ ј@ћД+џџџџџџџџШџџџџфЌљџџџџьˆŸ+ЈŒтџџџџЬ'џџџџ#HЈ<џџџџx;˜„x<ш;Є&X”№,џџџџhЏД DМtЊќшЃ А6$О`