All pastes #2037961 Raw Edit

TryThisOut

public text v1 · immutable
#2037961 ·published 2011-01-04 05:55 UTC
rendered paste body
:: 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