programdata

Win32 function to get path to C:\ProgramData

落花浮王杯 提交于 2019-12-20 17:59:12
问题 My app needs to install some files that can be edited by the application at run time. Install shield provides an alias [CommonAppDataFolder] that will resolve to c:\programData on Vista and Windows 7 and will also work on Windows XP. Is there a win32 function that will return a similar path? Maybe I need to call different functions depending on the operating system? 回答1: SHGetFolderPath/ SHGetSpecialFolderPath get you that, with CSIDL_COMMON_APPDATA argument. See code snippet here (at the

Write in “ProgramData” folder (W7 and Vista) .NET

久未见 提交于 2019-12-18 03:55:17
问题 I install my app under "Program Files" directory. And I install data, under "ProgramData" directory: Environment.SpecialFolder.CommonApplicationData In programData I have created folder to save data. Example: C:\ProgramData\MyApp\MyData\here I have files and folders Under XP all runs fine. But not under Vista or W7 OS. I can read files in this directory, but I can not write files, I can not create new files, etc. The user is logged as Admin. Where I can store data without restrictions? I need

What is the difference between ProgramData and AppData?

二次信任 提交于 2019-12-17 15:32:39
问题 I need to store some user-specific configuration data for my program. Both Application Data/AppData (in the user's directory) and ProgramData (in the root of the system drive) seem like reasonable places to put it. What is the difference between Program Data and Application Data and which should I use? 回答1: To put it straight, ProgramData contains application data that is not user specific .This data which will be available to all users on the computer. Any global data should be put in here.

C++ app MDB in ProgramData copies to user's AppData folder when I dont want it to

╄→尐↘猪︶ㄣ 提交于 2019-12-08 13:59:30
问题 I have a C++ program which connects to an Access database via OBDC System DSN connection. That DSN is a path to the MDB in the ProgramData folder. When User A runs the app, it copies that MDB file to their AppData\Local folder and any updates to the MDB the app makes, it does to the one in their AppData folder. This is no good because if User B runs the app I want them to see the changes that User A made to the MDB. 1) Is there a way to force it to NOT copy the MDB to their AppData folder and

Win32 function to get path to C:\\ProgramData

我的梦境 提交于 2019-12-03 05:25:45
My app needs to install some files that can be edited by the application at run time. Install shield provides an alias [CommonAppDataFolder] that will resolve to c:\programData on Vista and Windows 7 and will also work on Windows XP. Is there a win32 function that will return a similar path? Maybe I need to call different functions depending on the operating system? SHGetFolderPath / SHGetSpecialFolderPath get you that, with CSIDL_COMMON_APPDATA argument. See code snippet here (at the bottom): How to write a Windows XP Application that stores user and application data in the correct location

How to get the application specific data folder (ProgramData)?

半世苍凉 提交于 2019-12-01 15:21:48
问题 I need to read and write files that contain application specific data, shared between all the users. I tried to use Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) , but it returns only C:\ProgramData . My question is : Does it exist a system like Path.GetDirectoryName(Application.UserAppDataPath) , which will give me the exact folder to write, according to my application name and version? Or is ProgramData not the right place to do that. Thanks. 回答1: Does it exist

File redirection from Program data to AppData\\Local\\VirtualStore\\ProgramData

好久不见. 提交于 2019-12-01 01:02:13
I am using C# with .net 3.5 I am saving my program data in a file under: C:\Program Data\MyProgramName\fileName.xml After installing and running my application one time I uninstalled it (during uninstallation I'm removing all the files from "program data") and then I reinstall the application, and ran it. The strange thig is that my application started as if the files in program data existed - means, I had old data in my app even though the data file was deleted. When running: File.Exists("C:\Program Data\MyProgramName\fileName.xml") I got "true" even though I knew for sure that the file does