The code for hello.cmd is: @echo off echo Content-type: text/html echo. echo ^<h1^>Hello, World!^</h1^> echo USERNAME=%USERNAME% echo ^<pre^> type hello.cmd echo ^</pre^>