1

Does anybody know how to stop it coming up with that message thank you. I have looked on the internet and cant find any answers. Im making a basic RPG game using .bat and it ruins it by saying "Press any key to continue" if you guys know how to get rid of that message thankyou.

paulm
  • 5,629
  • 7
  • 47
  • 70
  • Does this help? [http://stackoverflow.com/questions/1223721/in-windows-cmd-how-do-i-prompt-for-user-input-and-use-the-result-in-another-com] @echo off could be what you need also. – Lawrence Johnson Jan 01 '16 at 04:59

2 Answers2

1

You can suppress the output of any command by adding >nul to the end.

In this case, use pause >nul

SomethingDark
  • 13,229
  • 5
  • 50
  • 55
  • @XavierBall - happy to help. If my answer have you the solution you were looking for, please click the check mark next to my answer. – SomethingDark Jan 01 '16 at 04:56
  • can you please help me with my latest question https://stackoverflow.com/questions/34553934/bat-assistance-required-about-an-rpg-im-making thankyou : D – Xavier Ball Jan 01 '16 at 06:04
0
pause >nul

but I guess you still need to press Enter key to continue.

SomeDude
  • 13,876
  • 5
  • 21
  • 44