I would like to run (launche in cmd):
java -server -Xms1024m -Xmx4096m -XX:PermSize=256m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -jar FTBServer-1.7.10-1272.jar nogui
and redirect the output to the screen and a file, I got this to work but I also would like a totally separate file for errors but these errors also need to showup in the log file.
So I got this to redirect normal output: echo %test% 1>> D:\Documenten\Bureaublad\test.txt
and 2>>&1
to add the errors.
If I would add 2>> D:\Documenten\Bureaublad\test2.txt
the errors won't show up in the first file.
This i what I got in total:
@echo off
SET /P test=give input
echo %test% 1>> D:\Documenten\Bureaublad\test.txt 2>> D:\Documenten\Bureaublad\test2.txt 2>>&1
pause
it works but puts the output only to the file and not the screen and doesn't put the errors in the first and second file, only in the first.