agmip / translator-apsim

BSD 3-Clause "New" or "Revised" License
2 stars 3 forks source link

Need a runApsim77.bat file as output from QuadUI #13

Open chporter opened 9 years ago

chporter commented 9 years ago

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?

chporter commented 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 )