Re: More Batchfile fun!
FYI: I found the answer in this newsgroup: alt.msdos.batch.nt in thread
"Batch from cgi-bin".
Then answer was this:
@echo off
echo Content-Type: text/html
echo.
Echo ^<HTML^>
Echo ^<HEAD^>
Echo ^<TITLE^>TEST BAT FILE^</title^>
Echo ^</head^>
Echo ^<BODY^>
cmd /c (Psinfo.exe ^> output.txt)
echo ^<pre^>
type output.txt
echo ^</pre^>
Echo ^</body^>
Echo ^</html^>
Works every time now! :-D
Rach
"Si Ballenger" <shb*NO*SPAM*@comporium.net> wrote in message
news:3f0c9ac7.81535511@news.comporium.net...
[snip]
> Even though your batch file makes the txt file, your exe program
> is probably still sending data to the monitor screen (if the dos
> box is visible) instead of the txt file. If your exe file does
> not have a command line option to print to a file, then what you
> want to do may be difficult. You might try Psinfo.exe /? and see
> what options are available.
|