<div>Another approach is to put the executable in one folder dedicated to that purpose. Then create a DOS batch file that will call the executable. Put a copy of the batch file in each data folder. An example of such a batch file, which could be named runmodel.bat, is:</div>
<div> </div><div>D:\my_models\model01\model.exe %1 %2 %3 %4</div><div>del model.b0*</div><div>del model.r0*</div><div> </div><div>If you are unfamilar with DOS batch commands, the %1, %2 etc. allow command line arguments to be passed to the executable. Then after the model finishes running, the del commands (which certainly are optional) clean-up some usually unneeded files.</div>
<div> </div><div>Rick M.<br><br></div><div class="gmail_quote">On Thu, Dec 29, 2011 at 8:31 AM, Weihai Liu <span dir="ltr"><<a href="mailto:liuweih@msu.edu">liuweih@msu.edu</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
Try to copy your data file to EACH folder which hold your .exe file, such as copy qqtty.dat to d:\model13\<div><br></div><div>weihai<br><br><div class="gmail_quote">On Thu, Dec 29, 2011 at 6:27 AM, Nassar <span dir="ltr"><<a href="mailto:nassar.naji@orange.fr" target="_blank">nassar.naji@orange.fr</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div lang="FR" vlink="purple" link="blue"><div><div><p class="MsoNormal">
<span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">Thanks Aaron, Mark ; Chris & KvK<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US">The issue is related to interaction between ADMB and OS, how do ADMB reads its files (ad_comm files) .. and how OS launch several & independent ADMB executables.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US">My case : one data file at D root and several models.. D:\model01\model01.exe..D:\ model13\model13.exe<u></u><u></u></span></p>
<p><u></u><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US"><span>-<span style="font:7pt/normal "Times New Roman";font-size-adjust:none;font-stretch:normal"> </span></span></span><u></u><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US">Write a batch command file.. <u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US">The trouble I’m getting :<u></u><u></u></span></p><p><u></u><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US"><span>-<span style="font:7pt/normal "Times New Roman";font-size-adjust:none;font-stretch:normal"> </span></span></span><u></u><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US">Unable to make the commands that launch the 13 models (it’s an OS issue), some help is highly welcome<u></u><u></u></span></p>
<p><u></u><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US"><span>-<span style="font:7pt/normal "Times New Roman";font-size-adjust:none;font-stretch:normal"> </span></span></span><u></u><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US">The data file is at the D root and the launching any model with the command<u></u><u></u></span></p>
<p style="margin-left:72pt"><u></u><span style="color:rgb(31,73,125);font-family:"Courier New";font-size:11pt" lang="EN-US"><span>o<span style="font:7pt/normal "Times New Roman";font-size-adjust:none;font-stretch:normal"> </span></span></span><u></u><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US">> Mode01\model<u></u><u></u></span></p>
<p style="margin-left:72pt"><u></u><span style="color:rgb(31,73,125);font-family:"Courier New";font-size:11pt" lang="EN-US"><span>o<span style="font:7pt/normal "Times New Roman";font-size-adjust:none;font-stretch:normal"> </span></span></span><u></u><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US">Error trying to open data input file qqtty.dat <u></u><u></u></span></p>
<p style="margin-left:72pt"><u></u><span style="color:rgb(31,73,125);font-family:"Courier New";font-size:11pt" lang="EN-US"><span>o<span style="font:7pt/normal "Times New Roman";font-size-adjust:none;font-stretch:normal"> </span></span></span><u></u><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US">While this file is located at model01 subdirectory..<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US">DATA_SECTION<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US">…<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US"> !! ad_comm::change_datafile_name("qqtty.dat");<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US">Thanks for help<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US">Naji<u></u><u></u></span></p></div></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@admb-project.org" target="_blank">Users@admb-project.org</a><br>
<a href="http://lists.admb-project.org/mailman/listinfo/users" target="_blank">http://lists.admb-project.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@admb-project.org">Users@admb-project.org</a><br>
<a href="http://lists.admb-project.org/mailman/listinfo/users" target="_blank">http://lists.admb-project.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br>