WIN XP PRO DOS COMMANDS (date in file name)
Local Settings=UK dd/MM/yyy
There is a given log file named: logmm_dd_yyyy.txt e.g. log01_14_2005.txt
The date of the file will always be yesterdays date. I need to be able to manipulate this file in batch.
Let say the file is located in a direcory called \stats together with other files such as older files and different txt files.
1) I want to copy only yesterday's file to a directory called \devnew2 for further processing (analog.exe log file processor processes and putputs as html).
2) Assuming (1) has been successful, the now html file will the then be converted into a PDF file using the Ghtmldoc.exe command line utility. As I do not know how to call a date based input file for ghtmldox.exe name and how to ask ghtmldoc.exe to name the output to contain yesterdays date, I am inclined to name the file to something generic such as stats.pdf.
3) Now I need to rename the stats.pdf file again so that it contains yesterday's date with the following convention: yyyy_mm_dd_stats.pdf
I need answers to (1) and (3).
(2) is optional but would be nice.
The most elegant answer is worth max points.