Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Common AppData issues
Message
De
03/03/2015 12:40:33
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
03/03/2015 11:45:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01616136
Message ID:
01616148
Vues:
68
This message has been marked as a message which has helped to the initial question of the thread.
>>I have an issue with the common App Data folder which I get using SHGetSpecialFolderPath.
>>The path is something like C:\ProgramData\My Company\Project Name\. The problem is the program creates a preferences file to store local settings, but when running the program the first time, we run it as administrator in order to let it install some additional resources. So whenever we run the program subsequently without admin right, the error occurs "File access denied", because it would not allow writing to this location or replacing the file.
>>
>>Is this the correct place to store local application data, or would be it better to place it into the temp folder? I haven't used the temp folder for the reason that it can get cleaned up, although I could live with it if there is no better way.
>
>Hi,
>
>I have succesfully stored in Appdata = (getenv("Appdata") folder, although its title is misleading to "C:\Users\MyUserName\Appdata\Roaming" where MyUserName is replaced with the actual name, it is not roaming but remaines there permanently.

I think that "roaming" means that it's copied, when possible, to another machine in the same local network, when the same user logs in there. It should be taken as "for roaming".

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform