Windows batch command(s) to read first line from text file January 10, 2023 by Tarik uh? imo this is much simpler set /p texte=< file.txt echo %texte%