I have a database app that I would like to make portable. When it starts, it wants to read its configuration from an *.INI. The location for the *.INI is hard-coded in the single executable, it's always C:\Books-db\bdb.ini. The mapping for the actual database file is in that *.ini. The *.ini gets heavily modified in every session.
What I want to achieve is that I can keep both the *.exe and the database file on the stick. When it launches, I would like to copy the *.ini to C:\, to the folder it wants and after the program is done, I would like to copy the *.ini back.
I have tried the following in my launcher.ini:
It copies the *.ini down but it doesn't retrive it after the app finishes. What am I doing wrong (or can't it be even done)? Thanks for any suggestions.
And am a newb, please go easy on me if it's a silly question.