Writing a batchfile capable of referencing a file whose name is the current date?
Hi there. Tricky one this. I have a server which is generating log files in the format "ex<DateInReverse>.log"
For example today's file (06/06/07) is called ex070606.log
Yesterday's (05/06/07) is ex070605.log
Now how can I write a batchfile capable of referencing that filename?
For example how could I rewrite the command;
copy ex070606.log c:
to a command that will always copy today's log file when run?
Hi there. Tricky one this. I have a server which is generating log files in the format "ex<DateInReverse>.log"
For example today's file (06/06/07) is called ex070606.log
Yesterday's (05/06/07) is ex070605.log
Now how can I write a batchfile capable of referencing that filename?
For example how could I rewrite the command;
copy ex070606.log c:
to a command that will always copy today's log file when run?
Last edited: