Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chporter opened this issue Sep 3, 2015 · 1 comment
Open

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

chporter opened this issue Sep 3, 2015 · 1 comment

Comments

@chporter
Copy link
Member

chporter commented Sep 3, 2015

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
Copy link
Member Author

chporter commented Sep 3, 2015

@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
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant