Answer the question
In order to leave comments, you need to log in
How to get the name of the directory where the bat file is located?
Hello.
Tell me how to get the name of the directory in which the bat file is located? cd - возвращает полный путь
And I would like to find out only the name.
Answer the question
In order to leave comments, you need to log in
I found the solution myself.
for %%a in (".") do set CURRENT_DIR_NAME=%%~na
echo %CURRENT_DIR_NAME%
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question