Questions tagged [appdata]

Used for questions relating to the user application data folders. Topics should be related to the use of the Windows APPDATA or USERPROFILE environment variables.

Windows Environment Variables

Environment variables are mainly used within batch files, they can be created, modified and deleted for a session using the SET command. To make permanent changes, use SETX

Variables can be displayed using either SET or ECHO.

Variables have a percent sign on both sides: %ThisIsAVariable%

Standard (built-in) Environment Variables include the following:

ALLUSERSPROFILE   C:\ProgramData
APPDATA           C:\Users\{username}\AppData\Roaming
LOCALAPPDATA      C:\Users\{username}\AppData\Local
USERPROFILE       %SystemDrive%\Users\{username}
                  This is equivalent to the $HOME environment variable in Unix/Linux 

Related Tags:

298 questions
1
vote
1 answer

SHGetSpecialFolderPath to a System::String^

I'm trying to parse a SHGetSpecialFolderPath into a string, a System::String^ to be precise. I'm now using this code: TCHAR appDataPath; SHGetSpecialFolderPath(0, appDataPath, CSIDL_APPDATA, false); I've tried things like this, but it doesn't work…
Jers
  • 221
  • 4
  • 14
1
vote
3 answers

How to make NSIS create a file in an %APPDATA% of another user?

I wrote an NSIS installer script for postgresql 9.1. The installer works properly, but after the reboot, the service is not started (right after the install, the database started properly though) I guess this is because the postgres service user has…
SCO
  • 1,832
  • 1
  • 24
  • 45
0
votes
1 answer

toList() System.InvalidCastException was unhandled by user code

I have written a WCF service using LINQ to SQL (using the following article at codeporject). I am facing the invalid cast exception when i invoke the .ToList() method of an object after i have already made a wcf function call of the same service…
Steve Johnson
  • 3,054
  • 7
  • 46
  • 71
0
votes
1 answer

How To collect iPhone App information

There are some apps that introduce other popular applications. I'm really surprised that when I change the cost of my application, the introducing app shows the new cost of mine really quickly. How can this be possible? Is the developer collecting…
Sallie Lee
  • 35
  • 7
0
votes
1 answer

How to set default application path value in user scoped settings

In my C# project, I have a user scoped setting for a folder path which I want to set at design time so that it becomes the default value for new users (If i am not mistaken). I want to set the default value to one of the user AppData folder. What do…
Jake
  • 11,273
  • 21
  • 90
  • 147
0
votes
0 answers

C# WinUI 3 ILocalSettingsService saving to file

I am using WinUI 3 Template Studio, and somehow struggling with saving settings to file. The LocalSettingsService comes as default with the template: public class LocalSettingsService : ILocalSettingsService { private const string…
Franck E
  • 629
  • 8
  • 26
0
votes
0 answers

Can't get correct path to roaming, when it is running as windows service

I want to get path to roaming, which should end up like this in my case: A:\Users\Mitja\AppData\Roaming But when program is ran as windows service all I get is: C:\Windows\System32\config\systemprofile\AppData\Roaming I tried multiple libraries, but…
Knedl
  • 1
  • 1
0
votes
1 answer

Where are ApplicationData.RoamingSettings stored when using UWP?

I am making a UWP app and I need to store some settings for my app in roaming AppData. I am using this code to save it: public bool[] options = { true }; public bool[] saveCBState = { true, true, true …
yesseruser
  • 68
  • 7
0
votes
0 answers

Mobile App migrating to new device don't want to copy the app data

I have a mobile app, while migrating my device from iPhone 13 to iPhone 14 it was even copying the app data. is there any way to stop copying the app data while doing the migration ? my use case: after successful migration to the new device(iPhone…
0
votes
0 answers

Flutter cached dependencies taking over 500gb in AppData

flutter appdata My fellow colleagues seems to not have this problem, any reason why I have to keep clearing the folder each time?
0
votes
0 answers

Possible to move appdata-catalog?

I've started to work with episerver 12 and I'm wondering if it's possible to move the appdata-folder to the root-folder by code? My guess is that you do it in appsettings.json! The appdata-folder is in the front-folder now. Kind regards, Matilda
Valen
  • 1
0
votes
1 answer

Powershell Directory change with variable

i am writing a Programm where the script has to change the location to the AppData Folder. But the User at the PC is changeing so there is in my optinon no way to do this static so i wrote a script which picks out the user which is logged in. The…
mojo
  • 3
  • 3
0
votes
1 answer

AutoLisp - Find AppData

I'm having trouble in finding AppData with the parent folder. Originally, my plan was to pull the username, use it to get to C:\Users\[User]\AppData\Roaming\DraftSight, and create a text file with the few variables needed for the add-in. However,…
G Beck
  • 131
  • 1
  • 14
0
votes
1 answer

Remove appData after uninstall Electron app

I want to remove the appData after my app was uninstalled. The deleteAppDataOnUninstall: true option was useful when i run the uninstaller.exe,but not work when i install the app again. When I want to install a version v2 to cover the version v1…
罗知晏
  • 3
  • 3
0
votes
2 answers

My JApplet can't write to my APPDATA folder

So yeah, I am making a Text-Based RPG, in the form of an applet. This applet writes to your APPDATA directory when opened. It works in the IDE, but when I try it in Firefox, it comes up with an error message. HERE is the link. File…
Jay
  • 143
  • 2
  • 11