[DOS]DOS Batch Commands[/DOS]

Executes the DOS batch file commands contained in the context and displays the results. (New for 2.1)

To embed the results of a DOS Batch file into one of your pages, put a DOS context into a template. The DOS program contained inside the context is executed, and any returned value is displayed in place of the context. Any [xxx] tags inside the context are first substituted for their real values before the batch file is executed.

Example (normally you would put the following text into a .TPL file on your server and use a web browser to link to it):

<pre>
[DOS]dir c:[/DOS]
</pre>

In this example, the DOS command "dir c:" is executed, and the results (a listing of all the files at the root of C: drive) is displayed. The <pre> tags are used to format the results more nicely in an HTML page.

Caution! DOS has complete access to your hard disk and all programs on your web server. You can write a DOS context that erases the contents of your hard disk. Don't worry: remote visitors to your web site have no way of executing their own DOS contexts remotely; they can only execute DOS commands inside a template file that you have saved on your web server's hard disk.