Hello all,

Chris and Mansour have both raised the issue of automating operations and running the 
same operations on multiple maps or databases. There is a feature of the oes engine 
which allows command line parameters, so that once the scripts are set up the 
automation part isn't too bad.

For example, the script I proposed to Mansour, which would create stats for each 
database, can be begun with:
CURRENT        DB,{{MyDataBase}}
and run from the command line like this:
oes /newgs c:\geosoft\ddonkey\getstats.gs MyDataBase=[PUT DB Name here]

You can also use the command line parameter to set up parameter settings. It's all in 
the PDF version of the help.

The last step is to automate on more than 1 map or database using good old dos. So 
that the above command becomes a batch file containing one line:
FOR %%g IN (*.gdb) DO oes /newgs c:\geosoft\ddonkey\getstats.gs MyDataBase=%%g 

The for command has a zillion options to make these sorts of things quite powerful. 
Once you get the hang of it though you can do all sorts of things. I believe there is 
even a batch file option of prompting for input, so you can create interactive batch 
files. There is more than you would ever want to know about batch files at 
http://www.fortunecity.com/skyscraper/wired/53/intro/contents.htm. So there is still 
hope for all you dos lovers out there!

Of course, if you really want to power up your scripts you should check out the link 
below. :-)

cheers

Marc Pelletier
---------------------------------------------------------------------------
Data Donkey - Geophysical Data Processing, Consulting and Software Development
               Creator of the POWER TOOLBOX utilities for OASIS montaj
contact: mailto:[EMAIL PROTECTED]  tel (306) 931-6853 or http://www.datadonkey.com

_______________________________________________________
More mailing list info http://www.geosoft.com/support/listserv/index.html

Reply via email to