How to hide commands in the prompt of Windows 10 from a batch file?

خرید بک لینک

I want to hide the commands in the prompt that opened from a batch file. Example:

This is how it normally is:

Normal Prompt

This is how I want it to be:

Normal Prompt edited with Paint

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

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 365 تاريخ: جمعه 31 ارديبهشت 1395 ساعت: 9:30

صفحه بندی