Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

How to log a bat file and show in on the screen?

I have this bat file.

@REM javac URLThresholdMonitor.java

java -classpath . URLThresholdMonitor ./URLThresholdMonitor.properties > test.log

When i run it....it will show all the logs in test.log however not on the screen.

if i never put > test.log, then it will show the details on the black prompt.

What i want is to show all the details and also to log the details in test.log.

Any ideas how to do it? thanks..its very much appreciated.
[501 byte] By [forevercalz] at [2007-11-11 8:34:44]