Excellent post on a very simple way to get the directory path from an executing batch file:
http://weblogs.asp.net/whaggard/archive/2005/01/28/get-directory-path-of-an-executing-batch-file.aspx
http://geekswithblogs.net/drewby/articles/LogParser.aspx
http://www.scriptinganswers.com/vault/
Get every new post delivered to your Inbox.