This command line program sets the Registry Keys used by BPQ32 to locate other software, and configuration and log files.
On system prior to Windows Vista,
I recommend that software and configuration are stored in the same place - usually "Program Files\BPQ32". On Vista and above,
writing to "Program Files" is restricted, so I suggest putting configuration and log files in %APPDATA%\BPQ32. This defaults
to something like "C:\Users\John\AppData\Roaming\bpq32", but the location of %appdata% can be moved if desired.
The Registry Key used is also different pre or post Vista. This is because with Vista and above, the HKEY_LOCAL_MACHINE tree is not accessible to user programs.
. The keys writted by SetRegistryPath are:
Before Vista: HKEY_LOCAL_MACHINE\SOFTWARE\G8BPQ\BPQ32\BPQ Program Directory and HKEY_LOCAL_MACHINE\SOFTWARE\G8BPQ\BPQ32\BPQ Directory Vista and above: HKEY_CURRENT_USER\SOFTWARE\G8BPQ\BPQ32\BPQ Program Directory and HKEY_CURRENT_USER\SOFTWARE\G8BPQ\BPQ32\BPQ Directory
"BPQ Program Directory" is always set to the directory that SetRegistryPath was run from. By default, "BPQ Directory" is set to the current directory, but this can be overridden by a command line parameter. Typical usage is:
Before Vista: C:\Program Files\BPQ32>SetRegistryPath SetRegistryPath Version 2.0.1 Registry Key "HKEY_LOCAL_MACHINE\SOFTWARE\G8BPQ\BPQ32" Opened Registry Value "BPQ Directory" set to C:\Program Files\BPQ32 Registry Value "BPQ Program Directory" set to C:\Program Files\BPQ32 Press any key to Exit Vista and above: C:\Program Files\BPQ32>SetRegistryPath %appdata%\bpq32 SetRegistryPath Version 2.0.1 Registry Key "HKEY_CURRENT_USER\SOFTWARE\G8BPQ\BPQ32" Opened Registry Value "BPQ Directory" set to C:\Users\John\AppData\Roaming\bpq32 Registry Value "BPQ Program Directory" set to C:\Program Files\BPQ32 Press any key to Exit
Program ClearRegistryPath may be used to remove the entries. Note that only the "BPQ Program Directory" and "BPQ Directory" keys are removed - it does not delete any configursation entries.
John Wiseman G8BPQ