Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a couple of MapInfo programs that use external EXEs for some functionality (e.g. ogr2ogr for layer conversion and OV2 Tools for satnav data output).

In my programs I would like to have a settings dialog where you set the location of these EXEs and then somehow store these so that they are remembered even after Mapinfo has been closed down.

What's the best way to do this?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

You could store the path in a text file which your program then reads when you start the tool up.

For example, the Named Views tool stores data in a xml document at C:\Documents and Settings\User Name\Application Data\MapInfo\MapInfo\nviews.xml

share|improve this answer
add comment

Like above, just use a properties file, that is overwritten with the last known exe you've typed in, and pre populates a dialogue. Can be any format. You then open read/write and close it just like any text file.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.