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
use it to get current directory. “%~dp0″ (without the quotes)
Name (required)
E-mail (will not be published) (required)
Website
Notify me of follow-up comments via email.
March 3, 2009 at 10:53 am
use it to get current directory.
“%~dp0″ (without the quotes)