Click here to Skip to main content
15,894,825 members
Articles / Programming Languages / Java

CaptureConsole.DLL - A Universal Console Output Redirector for all Compilers

Rate me:
Please Sign up or sign in to vote.
4.70/5 (41 votes)
28 Oct 2010CPOL7 min read 217.8K   3K   166  
Capture Console Output
@echo off

echo ----------------------------------------------------------
echo This output is printed by the DOS script 'ConsoleTest.bat'
echo ----------------------------------------------------------
echo.
echo Commandline Param1 = %1
echo Commandline Param2 = %2
echo UserVariable1      = %UserVariable1%
echo UserVariable2      = %UserVariable2%
echo SystemRoot         = %SystemRoot%
echo ComputerName       = %ComputerName%
echo.

echo Now printing SystemInfo:

SYSTEMINFO

EXIT 55

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) ElmüSoft
Chile Chile
Software Engineer since 40 years.

Comments and Discussions