Occurrence:
I get the following error message when attempting to run a Geosoft script (*.gs) outside of a Geosoft application.
Resolution:
- Using Windows 10, Open the Control Panel Click "System and Security"
- Then Click "System".
- From the list of options select "Advanced System Settings" in the upper left-hand corner of the dialog.
- In the Pop up "System Properties" window select "Environment Variables" at the bottom.
- Click the "New" button to add a new variable. Enter:
Variable Name: OMS
Variable Value : "C:\Program Files\Geosoft\Desktop Applications 9\bin\oms.exe"
NOTE: The quotations ("") are important.
NOTE: It may also be helpful to add the variable to both the "User Variables" and the "System Variables". - Press ok in each remaining Dialog.
- Restart the machine before running the batch file.
Root cause:
OMS.exe is required to run Geosoft Scripts (.gs) outside the Geosoft Application environment. By Adding the OMS.exe to the system environment variables the OMS program can be launched from any directory.