I have a program that generates a CSV file with extra blank lines at the end. It is never the same number of lines and the file name changes each time the program is run but always starts out with "APPTS" and ends with the "TXT" extension.
I am looking for a batch file that will remove all the blank lines but keep the file name the same.
It also needs to work with wildcards.
Running it from the command line should look something like this: