Windows batch command(s) to read first line from text file
As discussed in the above article, one can use the below code to get the first line. The limitation is however that only the first 1026 bytes are copied. My headers are longer. How can I avoid this limitation?
set /p texte=< "C:\Users\swuyts\Desktop\PMO
Dashboard\Sourcefiles\Pentana\Landingsarea\PlannedHours_Pentana.txt"
echo %texte% > "C:\Users\swuyts\Desktop\PMO
Dashboard\Sourcefiles\Pentana\Landingsarea\PlannedHours_Pentana_headers.txt"