I know that %0 contains the full path of the batch script, e.g. c:\\path\\to\\my\\file\\abc.bat
%0
c:\\path\\to\\my\\file\\abc.bat
I would path to be equal to
path
%~dp0 may be a relative path. To convert it to a full path, try something like this:
%~dp0
pushd %~dp0 set script_dir=%CD% popd