On Monday, March 7, 2005, 10:03:58 PM, Goran wrote: GJ> I run this batch job every night at just before midnight. It does GJ> everything you asked for and more :) and if you act quickly we can throw GJ> in some steak knives.
GJ> And while I am at it does anyone have and batch code that will figure GJ> out yesterdays date? I would love to run my report after midnight and GJ> get yesterday's log file. It just so happens I recently had to solve this problem while creating a test installation of the MDLP utility I'm working on. <http://www.sortmonster.com/MDLP/> I needed a batch file to automatically pull yesterday's auto-rotated declude log. I found some code snippets and hacked together a batch file to do it. (Attached with the dot changed to _) The script actually writes some vbs code on the fly and uses it to create some variables for the .bat file to use in it's travels. It's a hack, it's a hack, it's a hack!!!! Watch out! But... it does work ;-) I'll bet you can pick through this code and rework it for your needs. Hope this helps, _M
MDLP-Yesterday_bat
Description: Binary data
