Bryan - Gendev
Programmer
A user of my software has suggested using a ramdisk to speed up the processing of the 'combined' table I create prior to reporting from the 3rd party app's tables which my app uses.
I have installed a ramdisk and tried this by manually changing my temp folder to the ramdisk. It makes a real difference.
So I need a way write the new drive path and I feel that the registry being always present and can be changed at will would be the way to go.
Thus my original code which creates a folder under ( in my case ) C:\Users\%username%\AppData\Roaming could easily use a new path in it if it can be read from the registry.(I would write my existing temp path as the default and compare when starting my app.)
Is there a code snippet that will show me how to
1 Create a new registry location under HKLM/software/myappname/
2 Write a new key value
3 Read the new key value.
I have already created an option on my options form to enable the user to select a drive letter from those existing on their PC. So I will put the registry writing code there.
Thanks in advance
GenDev
I have installed a ramdisk and tried this by manually changing my temp folder to the ramdisk. It makes a real difference.
So I need a way write the new drive path and I feel that the registry being always present and can be changed at will would be the way to go.
Thus my original code which creates a folder under ( in my case ) C:\Users\%username%\AppData\Roaming could easily use a new path in it if it can be read from the registry.(I would write my existing temp path as the default and compare when starting my app.)
Is there a code snippet that will show me how to
1 Create a new registry location under HKLM/software/myappname/
2 Write a new key value
3 Read the new key value.
I have already created an option on my options form to enable the user to select a drive letter from those existing on their PC. So I will put the registry writing code there.
Thanks in advance
GenDev