SyntaxFix
Write A Post
Hire A Developer
Questions
You can use following script to get the path without trailing "\"
for %%i in ("%~dp0.") do SET "mypath=%%~fi"