<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.6000.16850" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px">
<DIV>>>> Olaf Wagner <wagner@elegosoft.com> 7/18/2009 6:36 AM >>><BR>>Yes, I haven't spent much thought on Windows until now. I hoped that<BR>>you or Jay will do that. Of course I've also overseen the install.cmd<BR>>scripts for Windows :-/ Should we use cmd or bat? Could somebody<BR>>quickly provide the equivalent of this loop, so that I can<BR>>automate it?<BR>> ----<BR>>#!/bin/sh<BR>>HERE=`pwd`<BR>>for p in m3-win/import-libs ... m3-comm/tcp; do<BR>>cd $p<BR>>cm3 -ship ${SHIPARGS}<BR>>cd $HERE<BR>>done<BR>> ----<BR></DIV>
<DIV>Olaf:</DIV>
<DIV> </DIV>
<DIV>Your script can be expressed in Windows .CMD format as follows:</DIV>
<DIV> </DIV>
<DIV>REM ---BEGIN---</DIV>
<DIV>@echo off<BR>for %%p in (m3-win\import-libs; ... m3-comm\tcp;) do call :ShipIt %%p<BR>goto End</DIV>
<DIV> </DIV>
<DIV>:ShipIt<BR>echo ...shipping %1...<BR>pushd %1<BR>cm3 -ship %SHIPARGS%<BR>popd<BR>echo.<BR>goto :EOF</DIV>
<DIV> </DIV>
<DIV>:End<BR>echo done<BR>@echo on</DIV>
<DIV>REM ---END---</DIV>
<DIV> </DIV>
<DIV>Of course, the REM lines at the beginning/end are optional, I just put them there to show start/end of the script. Also, you would want to replace "m3-win\import-libs; ... m3-comm\tcp;" with the actual list of folders to be processed. You can separate them by blank spaces or semi-colons, but if you have a path with an embedded space, you will need to put double quotes around the path.</DIV>
<DIV> </DIV>
<DIV>FYI: If your list of paths is in a text file, there is another form of the FOR command that would work to process the list from that file.</DIV>
<DIV> </DIV>
<DIV>I don't mind writing .CMD files, so if you and Jay want some help in this area, I am willing to volunteer.</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Randy Coleburn</DIV></BODY></HTML>