Open chporter opened 9 years ago
@echo off if exist "C:\Program Files (x86)\Apsim77-r3615\Model\" ( if exist maize.xml ( echo Run APSIM... "C:\Program Files (x86)\Apsim77-r3615\Model\Apsim" AgMip.apsim echo done! ) else ( echo Copy model file into working directory... if exist "C:\Program Files (x86)\Apsim77-r3615\Model\maize.xml" ( copy "C:\Program Files (x86)\Apsim77-r3615\Model\maize.xml" maize.xml echo done! echo Run APSIM... "C:\Program Files (x86)\Apsim77-r3615\Model\Apsim" AgMip.apsim echo done! ) else ( echo Failed! Crop file is missing! pause ) ) ) else if exist "C:\Program Files\Apsim77-r3615\Model\" ( if exist maize.xml ( echo Run APSIM... "C:\Program Files\Apsim77-r3615\Model\Apsim" AgMip.apsim echo done! ) else ( echo Copy model file into working directory... if exist "C:\Program Files\Apsim77-r3615\Model\maize.xml" ( copy "C:\Program Files\Apsim77-r3615\Model\maize.xml" maize.xml echo done! echo Run APSIM... "C:\Program Files\Apsim77-r3615\Model\Apsim" AgMip.apsim echo done! ) else ( echo Failed! Crop file is missing! pause ) ) ) else ( echo APSIM Model is missing! pause )
batch files for running APSIM are created for v7.4 and 7.5. We need a runApsim77.bat file now. Do we also need one for v7.6, or can we leap over that version?