Cardinal System
Honorable Member
- Joined
- Jan 24, 2016
- Messages
- 87
- Thread Author
- #1
I am totally inexperienced with batch (.bat) files, so please bear with me...
I have a Java program that I run with cmd, and I want to record the console output to a text file. In other Java programs I've created, I used jars (.jar) to run the program, thus I didn't need cmd, and I could use Java methods to record the output. This program is the exception.
Could anyone please give me sample batch code that would record the following batch file console output to a text file?
I have a Java program that I run with cmd, and I want to record the console output to a text file. In other Java programs I've created, I used jars (.jar) to run the program, thus I didn't need cmd, and I could use Java methods to record the output. This program is the exception.
Could anyone please give me sample batch code that would record the following batch file console output to a text file?
Code:
@echo off
java -Xms512M -Xmx1G -XX:+UseConcMarkSweepGC -jar craftbukkit-1.8.8.jar
pause