Quel codice attende un invio non un tasto ...

Non puoi non usare il system per i comandi DOS ...