I'd like to create a batch file that uses (e.g. prints) its full path:
c:\tmp\foo> nice.bat
I am c:\tmp\foo\nice.bat
I'd like to create a batch file that uses (e.g. prints) its full path:
c:\tmp\foo> nice.bat
I am c:\tmp\foo\nice.bat
%~dp0 from memory is the full path to the batch file.
EDIT For more variable substitution run call /?