copy "%cd%\some.file" "c:\there\some.file"
or
copy "%~dp0some.file" "c:\there\some.file"
they are different. %cd%is the current executable directory, and %~dp0is the bat file if the SHIFT command is not called. Also %~dp0can not be used from the command line, since there is no script.
source
share