I wanted to compile a Java file through a batch file, then I realized that I wouldn’t see any errors, I decided to try creating logs using the same batch file, but nothing happens. I tried to put file overwriting through '>', however, the result is the same.
The code itself .bat:
echo Date:% date%, time:% time% >> "C: \ app \ logs \ log.txt" cd "C: \ app \ xyz \ some \ Main" "C: \ Program Files \ Java \ jdk1.8.0_144 \ bin \ javac.exe" Main.java >> "C: \ app \ logs \ log.txt" echo ===================================== >> "C: \ app \ logs \ log. txt "