Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
.bat delete first line of text file
Name: listenmirndt Date: December 19, 2005 at 19:29:37 Pacific OS: XP CPU/Ram: 1.7 512
Comment:
I found this code on this forum : It deletes the first 4 lines of a text file, but I only want it to delete the first line... I do not understand this syntax and where to change it..
Can somone help? Thanks!
--------------------- @echo off
if %1'==' echo which file? && goto :eof
:main set NOTfirst= for /f %%L in (%1) do call :NOfirst %%L goto :eof
:NOfirst if %NOTfirst%'==Y' echo %1 set NOTfirst=Y goto :eof
Summary: Does anyone know how to delete the first line of text from a text file using a batch file (or a simple way from the command line)? Thanks, Cory ...
Summary: Hello! I would like to use a batch file to delete the first line of a text file and send the rest of the file to a new text file. Thanks, Cale ...