diff --git a/rebar.bat b/rebar.bat index 547da6b..5cb5681 100644 --- a/rebar.bat +++ b/rebar.bat @@ -1,4 +1,4 @@ @echo off setlocal -set rebarscript=%0 -escript.exe %rebarscript:.bat=% %* +set rebarscript=%~f0 +escript.exe "%rebarscript:.bat=%" %*