I am trying to get the file path of the batch script file that I made. I want the script to take the current path of the batch file and remove the file name and stores it in a variable, so it looks like this:
C:/path/to/batch/
Not like this: C:/path/to/batch/file.bat
I don't want: file.bat
in the file path.
Here is my batch file:
@echo off
echo grabbing file path...
set filePath=%0
pause %filePath%