Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Store preferences in registry
Message
From
31/03/2011 19:12:06
 
 
To
23/03/2011 14:16:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01504706
Message ID:
01505766
Views:
104
This message has been marked as a message which has helped to the initial question of the thread.
>I used to store certain preferences in the Windows registry, using the Local Machine > Software folder.
>
>In Windows 7 that cannot be written to anymore without Administrator rights. I suppose I should use the current_user > software folder now, is this a good place for preferences/settings? I Just wanted to be sure before I do the change.

For application specific (the same for each user), in VS it is the app.config file. A comparable xml would be appropriate for VFP.

http://msdn.microsoft.com/en-us/library/system.environment.specialfolder.aspx

Note the changes for Windows 7 submitted by a user (Note I had to add spaces to avoid it thinking it was a tag here on the UT) --

ApplicationData: C:\Users\ < user name > \AppData\Roaming
CommonApplicationData: C:\ProgramData
ProgramFiles: C:\Program Files
CommonProgramFiles: C:\Program Files\Common Files
DesktopDirectory: C:\Users\ < user name > \Desktop
LocalApplicationData: C:\Users\ < user name > \AppData\Local
MyDocuments: C:\Users\ < user name > \Documents
System: C:\WINDOWS\system32

if you are like me looking for:

%USERDATA%\Application Data\Folder\

You need:

%USERDATA%\AppData\Roaming\Folder

And look at Doug's recommendations:
http://doughennig.blogspot.com/2007/01/finding-paths-for-special-folders.html
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform