:: Version 0.1.0 :: :: Finally, a working script that knows where it lives @echo off set ME=%~dp0 cd %ME% if [%1]==[] ( :: We need to complain, user should modify this line below :: set IMAGE=%ME%\cobalt.image @echo "Ooops" ) else ( set IMAGE=%1 ) :: You'll need a python command where it says %ME, %IMAGE is the parameter you drag and :: drop onto the batch file. start "Open Cobalt" "%ME%\bin\Croquet.exe" "%IMAGE%" @echo on