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)
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
Connecting to %s
Notify me of follow-up comments via email.
Get every new post delivered to your Inbox.
March 3, 2009 at 10:53 am
use it to get current directory.
“%~dp0″ (without the quotes)