appdata

Is there a shared folder in Windows to which non-elevated users have write access?

爱⌒轻易说出口 提交于 2019-12-01 03:59:47
I know that commonappdata (All Users) can hold system-wide application settings, but under Vista/7 non-elevated users can't write to that directory. Is there a folder which is shared among users and any non-admin user can write to it? Here is why I need this: My app is installed in PF directory by an Inno Setup installer with elevated rights. Then when the actual non-admin user runs the program, it copies its settings to the user's AppData directory using another non-elevated Inno Setup installer. Upon deinstalling the program (initiated by the system-wide installer with admin rights) I want

How do I get the value of Windows' %APPDATA% location variable in Java?

匆匆过客 提交于 2019-12-01 03:57:13
I'm trying to make my program save its state in the location set by %APPDATA% when the user is using Windows. However, System.getProperty("temp.dir"); does not return that. How do I get the value of the %APPDATA% variable in Windows, for the purpose of state saving? Use System.getenv() System.getenv("APPDATA") But I think System.getProperty("user.home") should be preferred even though it's not exactly the same thing because it is more portable. IceMan APPDATA is a Windows specific environment variable that gives you the location where application specific data is stored, so if you are not

When should I opt for IsolatedStorage versus AppData file storage?

不羁的心 提交于 2019-12-01 03:17:46
问题 I've recently discovered the IsolatedStorage facilities in .net, and I'm wondering when I should use them for my application data versus when I should use (e.g.) Application.LocalUserAppDataPath . One thing that I've noticed is that Application doesn't exist outside of a winforms app, so it seems that IsolatedStorage might make sense for a class library that needs some specific storage, especially if that library might be used by both a web app and a winforms app. Is that the only

Why oShell.Run not work

て烟熏妆下的殇ゞ 提交于 2019-12-01 01:58:34
This code not work set oShell = WScript.CreateObject ("WScript.shell") oShell.Run "%appdata%\Test.bat",0,False But this code work set oShell = WScript.CreateObject ("WScript.shell") oShell.Run "C:\Users\User\AppData\Roaming\Test.bat",0,False Why oShell.Run not find the file ? Lankymart @ansgar-wiechers is spot on about the ExpandEnvironmentStrings() as some of the other answers have suggested using it, but the documentation is clear; From MSDN - Run Method (Windows Script Host) The Run method returns an integer. The Run method starts a program running in a new Windows process. You can have

How do I get the value of Windows' %APPDATA% location variable in Java?

╄→尐↘猪︶ㄣ 提交于 2019-12-01 00:11:13
问题 I'm trying to make my program save its state in the location set by %APPDATA% when the user is using Windows. However, System.getProperty("temp.dir"); does not return that. How do I get the value of the %APPDATA% variable in Windows, for the purpose of state saving? 回答1: Use System.getenv() System.getenv("APPDATA") But I think System.getProperty("user.home") should be preferred even though it's not exactly the same thing because it is more portable. 回答2: APPDATA is a Windows specific

Why was git installed in AppData instead of Program Files?

寵の児 提交于 2019-11-29 21:12:34
问题 I installed the GitHub Desktop app in my Windows 7 from here and then restarted my laptop. I go to the Windows cmd and type git clone https://github.com/myName/myAwesomeProject.git and I get 'git' is not recognized as an internal or external command, operable program or batch file. . So I googled it and found out that I have to re-set the PATH from here. I go to the C>Program Files (x86) and there is no Git folder there. I dont know why. I searched for "Git" inside C and found it here C:

Problems with umlauts in python appdata environvent variable

纵然是瞬间 提交于 2019-11-29 14:39:56
问题 I can't find a correct way to get the environment variable for the appdata path in python. The problem is that my user name includes special characters (the german ae and ue). I made a workaround wit PyQt for Vista and Windows 7 but it doesn't work for XP Systems. Does anybody know the correct encoding of these environment variables or another solution for this problem? 回答1: As Mike says, you can get the system codepage from getfilesystemencoding . This encoding is used to convert Windows's

How to get the %AppData% folder in C?

旧时模样 提交于 2019-11-28 12:13:24
As above, how do I get the AppData folder in Windows using C? I know that for C# you use Environment.SpecialFolder.ApplicationData Use SHGetSpecialFolderPath with a CSIDL set to the desired folder (probably CSIDL_APPDATA or CSIDL_LOCAL_APPDATA). You can also use the newer SHGetFolderPath() and SHGetKnownFolderPath() functions. There's also SHGetKnownFolderIDList() and if you like COM there's IKnownFolder::GetPath() . If I recall correctly it should just be #include <stdlib.h> getenv("APPDATA"); Edit: Just double-checked, works fine! Using the %APPDATA% environment variable will probably work

How to use Application Data in an (App.config) connectionString

穿精又带淫゛_ 提交于 2019-11-28 11:33:37
I've got an SQL Server CE database in a project that I wan't to store somewhere in the %AppData% directory. However I can't find a way to make a reference to the Application Data path in the connection string (in the App.Config) <?xml version="1.0"?> <configuration> <configSections> </configSections> <connectionStrings> <add name="EntityConnectionString" connectionString="metadata=res://*/EntityModel.csdl|res://*/EntityModel.ssdl|res://*/EntityModel.msl;provider=System.Data.SqlServerCe.3.5;provider connection string="Data Source=|ApplicationData|\Entities.sdf"" providerName="System.Data

Difference between 'SpecialFolder.LocalApplicationData' and 'SpecialFolder.ApplicationData'?

半腔热情 提交于 2019-11-28 04:52:50
On my system, %AppData% leads to ApplicationData which is C:\Users\<USER>\AppData\Roaming But there is also C:\Users\<USER>\AppData\Local And for some more confusion D:\Users\<USER>\AppData\LocalLow string local = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); string roaming = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); My question is, to which of these locations should my application save its data? Are there guidelines for which of these locations to use? And am I leaving myself open to problems if I choose the wrong location? The Roaming