By using FTP, I copy a dozen or so reports from a UNIX print spooler to my c:\temp folder. I then give them all a .txt extension so I can read them.
I would like to find a way programatically to read/parse the file and extract the report name (which appears on the left of the first line of the file) and rename the file the report name (such as territory sales.txt, returns.txt, orders booked.txt.....).
Could this be done in just DOS?
Thanks in advance.