I'd like to have some help testing a new feature i'd like to add to all of my programs, the ability to specify where you want your settings .ini file stored.
This has been requested by several people in the past, and it's a strange enough change that i would really appreciate some multi-day testing by people who use the program.
By default my programs store their settings in the program directory itself, which is good for portability like running it on usb drives, but bad for running it off cd rom for example, and bad for people who like all data settings stored in separate directories.
Ok so here is the alpha version (v2.23.01):
https://www.donation...ScreenshotCaptor.exeInstall it as normal over the old version. By default it *should* behave exactly as before.
However you will notice a file ConfigDir.ini in the program directory.
Opening that with a text editor will reveal the following:
CONFIGDIR = .
// This file (ConfigDir.ini) defines the directory where all configuration
// files for the program will be stored.
// There should be only 1 actual line in this file that has any meaning,
// the CONFIGDIR assignmane above. Everything else here is just comments.
//
// By default it is normally set to the program directory itself, meaning
// that all configuration/ini/settings/preferences will be store here
// with this ConfigDir.ini file. This is also best for when you want to
// put the program on a usb drive.
// Sometimes it is preferable to store the configuration files in a
// different directory, like a "C:\Documents and Settings" subdirectory
// which is designed to store program configuration data, or a custom
// directory specified by a user on a separate drive.
//
// TIPS:
// 1. You can comment out lines by prefacing them with //
// 2. You can use the following replacements:
// . (actual program directory)
// %MYDOCUMENTS% (like C:\My Documents)
// %APPDATA% (like C:\Documents and Settings\{username}\Application Data)
// %PROFILE% (like C:\Documents and Settings\{username})
// %COMMONAPPDATA% (like C:\Documents and Settings\All Users\Application Data)
// 3. The specified directory will be created if it doesn't exist.
// 4. If configuration files are not found in the specified directory,
// any existing configuration files in the app dir will be copied
// from the app dir to the specified directory.
// 5. If you edit this file while the program is running you need to
// exit and restart the program before it will take effect.
//
// EXAMPLES:
// CONFIGDIR=.
// CONFIGDIR=%MYDOCUMENTS%
// CONFIGDIR=E:\MyCleverSettings\
// CONFIGDIR=%APPDATA%
//
// NOTE: the company and application subdirectory name will automatically be
// added to the path specified (except for %APPDIR% which includes the name
// already, i.e.:
// "E:\MyCleverSettings" -> "E:\MyCleverSettings\DonationCoder\AppName\"
//
/////////////////////////////////////////////////////////////////////////////
So basically you just change that top line in that file to redirect the config file to be saved elsewhere, and then restart the program.
Important Note 1: On first use of a new location it will copy your old settings into the new location.
Important Note 2: You will probably have to go to options -> Folders and change your ScreenShots directory which will be hardcoded to the application directory (just change it to 'Screenshots' without any path, or elsewhere, it's up to you).
Important Note 3: There is no way to change this file from within the program, you must edit it yourself using a text editor like notepad.
Thanks for helping me test - i appreciate any reports (and suggestions).
I think eventually i will make it possible to change the dir from within options.
Once we get this working well i will add it to all of my programs