I use %0
in batch file to get the containing directory of the batch file but the result is :-
c:\folder1\folder2\batch.bat
I want just directory, without batch file name, like this :-
c:\folder1\folder2\
How can I do it? Maybe I should filter the path. If yes, how can I do it?