Thursday, October 30, 2008

%~dp0 SharePoint 2007 Visual Studio Extensions setup.bat

Have you seen "set PackageFile=%~dp0" preceeding the sharepoint solution name in setup.bat?
%~dp0" macro resolves to the fully expanded path to the directory containing the batch file.
This allows batch files to run regardless of the current working directory.

No comments: