1 @echo off 2 for %%i in (android.bat) do set x=%%~dp$PATH:i 3 set x=%x:\tools=% 4 5 # not yet tested! 6 @echo "sdk.dir=%x%" >> local.properties 7