|
-
Aug 2nd, 2002, 02:09 PM
#1
Thread Starter
Frenzied Member
importing registry logic
I dont need code for this, just a basic flowchart or something.
I have a registry file (the thing that is made when you export the registry) of all the keys for the settings of my proggy. I want to import that, but only certain parts of it. So say I had these settings:
Code:
Settings
Old People
Peanut Butter
Squirels
and I wanted to import just old people and squirells. Here's my idea so far:
Export current settings (backup)
copy the backup, so there are 2 backups.
Import the entire new settings (including peanutbutter)
export oldpeople
export peanutbutter
delete all registry settings
import one of the backups
import old people
import peanutbutter
delete backup unless there was an error
Does that make sense? or is there a better way to do it?
the file is a bit too complicated to parse BTW.
retired member. Thanks for everything 
-
Aug 2nd, 2002, 02:30 PM
#2
Why not just use VB to add the Keys and Values you want?
VB Code:
'save
SaveSetting App.Title, "Settings", "Old People", True
SaveSetting App.Title, "Settings", "Peanut Butter", False
SaveSetting App.Title, "Settings", "Squirels", True
'load
Dim oldpeople As Boolean
Dim peanutbutter As Boolean
Dim squirels As Boolean
oldpeople = GetSetting(App.Title, "Setting", "Old People")
peanutbutter = GetSetting(App.Title, "Setting", "Peanut Butter")
squirels = GetSetting(App.Title, "Setting", "Squirels")
-
Aug 10th, 2002, 08:38 PM
#3
Thread Starter
Frenzied Member
i want to have the user be able to export their preferences. then when they want to import them, they can select which to import.
will this work for that then?
retired member. Thanks for everything 
-
Aug 10th, 2002, 08:44 PM
#4
Need-a-life Member
Re: importing registry logic
Originally posted by markman
I dont need code for this, just a basic flowchart or something.
I have a registry file (the thing that is made when you export the registry) of all the keys for the settings of my proggy. I want to import that, but only certain parts of it. So say I had these settings:
Code:
Settings
Old People
Peanut Butter
Squirels
and I wanted to import just old people and squirells. Here's my idea so far:
Export current settings (backup)
copy the backup, so there are 2 backups.
Import the entire new settings (including peanutbutter)
export oldpeople
export peanutbutter
delete all registry settings
import one of the backups
import old people
import peanutbutter
delete backup unless there was an error
Does that make sense? or is there a better way to do it?
the file is a bit too complicated to parse BTW.
I don't understand... why would you dellete all registry settings if you're loading a backup after that. Besides... that backup will already have the setting for old people and peanutbutter... so, why would you import it again?
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|