Changing the location of your data files

Book_blue_open2-64x64

How to change the location of the StockMarketEye data files

StockMarketEye data files contain all of the investing information that you have entered into StockMarketEye. Watchlists, Portfolios, Transactions and even historical stock prices are stored in a special set of files on your computer.

Some users, however, may wish to keep their investing information in a different location. For example...

  • You want to keep your investing information on a USB key or external hard drive so you can take the data with you.
  • You want to keep your investing information on a separate disk that is backuped regularly.
  • You want to keep your investing information on an encrpyted partition.

StockMarketEye allows you to do any of these by making it easy to change the location of the data files that it uses.

Default Location

By default, StockMarketEye stores its data files in a folder called "db" in a standard location on your computer.

Mac OS X: /Users/<your user>/Library/Application Support/StockMarketEye/db
Windows 7 and Vista C:\Users\<your user>\AppData\Roaming\StockMarketEye\db
Windows XP C:\Documents and Settings\<your user name>\Application Data\StockMarketEye\db
Linux /home/<your user>/.StockMarketEye/db

Changing the Data File Location

You can follow these steps to change the location of the data files that StockMarketEye uses.

  1. We strongly suggest using StockMarketEye's Backup/Restore feature to backup your data before you change the data file location. This will ensure that you can recover from any problems that might happen while working through the steps below.

  2. Make sure that StockMarketEye is not running!

  3. ATTENTION: Always quit StockMarketEye before ejecting or unmounting any removable media on which you store the StockMarketEye data files.

    If you remove a USB key or external hard drive where the StockMarketEye data base is stored before quitting StockMarketEye, your data will be corrupted.

  4. Copy the "db" folder from the default location (listed above) to the place you want to store the data. This can be a removable drive, a network drive or simply a different location on your computer.
  5. Use a text editor to edit the following file. NOTE: this file may not yet exist. In this case, you will have to create a new file.
    Mac OS X: /Users/<your user>/Library/Application Support/StockMarketEye/sme_overrides.properties
    Windows 7 and Vista C:\Users\<your user>\AppData\Roaming\StockMarketEye\sme_overrides.properties
    Windows XP C:\Documents and Settings\<your user name>\Application Data\StockMarketEye\sme_overrides.properties
    Linux /home/<your user>/.StockMarketEye/sme_overrides.properties
  6. Add the following line to the sme_overrides.properties file, replacing <db-folder-location> with the new location of the "db" folder (from step #1).
    sme.db.dir=<db-folder-location>

    Here are some examples:

    Mac OS X: sme.db.dir=/Volumes/MyUSBKey/StockMarketEye-data
    Windows 7 and Vista sme.db.dir=C:\Users\john\My Encrypted Stuff\SME-db
    Windows XP sme.db.dir=E:\SME-db
    Linux sme.db.dir=/media/MyUSBKey/StockMarketEye-data
  7. Save the sme_overrides.properties file.
  8. Start StockMarketEye.

Trouble Shooting

Here are some of the common problems you might see and how you can fix them.

  • When starting StockMarketEye you see a window that says "We have detected another instance of StockMarketEye running on your computer."

    This most likely means that StockMarketEye could not read the data files from the new location. Ensure that you can view the contents of the "db" folder and that the location specified in the sme_overrides.properties file is correct.

  • When starting StockMarketEye you see the default StockMarketEye window, containing only the default Watchlists and Portfolios. Your Watchlists and Portfolios are not there.

    This happens when the location specified in the sme_overrides.properties file does not exist. StockMarketEye will create new data files at this location and use them. You can solve this problem by setting the location in sme_overrides.properties to the correct location of your StockMarketEye data files ("db" folder).

Questions or Problems

If you have any questions or problems, don't hesitate to contact our support team.


More about StockMarketEye

Learn more about StockMarketEye with these guides: