I would like to create a batch file that uses (e.g. prints) the full path:
c:\tmp\foo> nice.bat I am c:\tmp\foo\nice.bat
You can use% ~ f0 (for example, "echo% ~ f0").
Use % 0 and some modifiers
% ~ dp0 from memory is the full path to the batch file.
EDIT . For easier replacement startcall /?
call /?
try the following:
echo I am %~f0
Source: https://habr.com/ru/post/1717638/More articles:Great idea for embedded development - user-interfaceWhy is my client sending the request so slowly? - performancehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1717635/how-to-configure-manifest-only-once-in-pomxml-in-a-desktop-application&usg=ALkJrhiBQpWqj4qNZV4CBK-JBRI-5cHk6gC ++ coordinate transformation - c ++How do you develop a C ++ application to make Mock Objects the easiest to use? - c ++How to pass a string to subprocess.Popen in Python 2? - pythonIs there a way to make flash data in asp.net mvc? - asp.net-mvcFiles required by the dbexpress application to access mysql databases - mysqlЗадержка при использовании функции PHP mail() для отправки электронной почты через Exchange (с использованием sendmail в качестве реле) - phpSends emails from time to time, even if emails are sent - c #All Articles