I want to hide the commands in the prompt that opened from a batch file. Example:
This is how it normally is:
This is how I want it to be:
It would be good as well if there was a way of output everything (except the commands) to a text file. I used the redirection operator (
Time_Dif.bat > Time_Dif_Log.txt ) but it wrote the commands just like the prompt (as expected).
I searched and I found a lot of questions about how to hide the entire prompt from a batch or how to prevent the prompt from self closing in the end of the batch file but I want to hide only the commands.
The batch file:
set startTimeTwo=%time% javac myPi_Two.java java myPi_Two set finishTimeTwo=%time% set startTimeFour=%time% javac myPi_Four.java java myPi_Four set finishTimeFour=%time% set startTimeTen=%time% javac myPi_Ten.java java myPi_Ten set finishTimeTen=%time% echo myPi_Two: %startTimeTwo% %finishTimeTwo% echo myPi_Four: %startTimeFour% %finishTimeFour% echo myPi_Ten: %startTimeTen% %finishTimeTen% pause