I have a .csv file with a number of rows but I only want the first three rows and none of the rest. How can I use a batch file to export those top 3 rows of my .csv file into another file .csv file? I saw some similar questions with solutions that referenced text files but my attempts to amend the batch file weren't quite as successful. Anyone have any suggestions here?
Using this post from Stack overflow, (named head.bat by the author) it can be amended to do just what you are asking.
This will take the top n lines from