Most people probably know that can use the variable %0 in a batch file to get the name of the executing batch file. However if you use that in conjunction with some batch parameter modifiers you can easily split that into a drive, directory or filename. Therefore to get the location of an executing batch file from within that batch file you can use the variable %~dp0.
Read more »|
|
Get Directory Path of an executing Batch file
http://weblogs.asp.net –
Created by Dr Who 4 years 11 weeks ago – Made popular 4 years 11 weeks ago
Category: Programming Tags:
Category: Programming Tags:
