Apri notepad, scrivi il seguente codice
echo riga di test >> file.txt
salvi con nome mettendo come estensione .bat