@echo off setlocal set rebarscript=%~f0 escript.exe "%rebarscript:.cmd=%" %*