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
0 answers

C# How to save my data into appdata settings folder?

My application saves its settings in appadata\local\app\app.vshost.exe_Url_kukexgajlycv5ljlunm2odhmeuhaytc4 How can i get this directory so i can save in there my other data too? Is this a proper way or i should save them in another directory…
Senpai
  • 515
  • 6
  • 18
1
vote
0 answers

How to get the AppData folder in C# under Windows 10

I have always gotten the AppData folder using Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) However, on my Windows 10 test machine this returns "C:\Users\User\AppData\Roaming" not "C:\Users\\AppData\Roaming" as on all…
1
vote
1 answer

Visual Basic - Stuck trying to delete data in AppData

I wanted to make a Visual Basic application to delete the following file but I'm new to VB, sorry!: C:\Users\username\AppData\Local\Google\Chrome\User Data\Default\Cookies The file appears to not have a file extension, but it is an SQL-type file.…
WinWizard
  • 13
  • 5
1
vote
0 answers

What is the best way to store a java desktop application's Sqlite database?

I have a Java app that uses a Sqlite database file to store app's configuration, user's preferences and other parameters. The data is read and write during runtime. Now I have to make an installer for this app (for now, it will run on windows). I…
Broken_Window
  • 2,037
  • 3
  • 21
  • 47
1
vote
1 answer

NSIS retrieve and copy file from AppData

I want to check for a file and copy it over to another directory if it exists. Unfortunately, the file exists in the AppData folder. CheckFile: !define INSTDIR_DATA "$APPDATA\Local\VirtualStore\Program Files\SomeFolder" …
Rajada
  • 37
  • 1
  • 8
1
vote
0 answers

Where to deploy a (database) file for read/write access for all users?

I have a WPF application targeting .Net 4.0 and am using SQLite with the ADO.NET provider and Entity Framework. I do need to have read write access to the database file after deployment. My work colleagues and I have been searching, and in debate,…
SimperT
  • 2,837
  • 2
  • 15
  • 19
1
vote
1 answer

How to access to AppData folder?

I have to write a command line to access the profile folder whose path is: C:\Users\mypc\AppData\Thinstall\Mozilla Maintenance Service\%AppData%\Mozilla\Firefox\Profiles I used this command: cd /D "%APPDATA%\Thinstall\Mozilla Maintenance…
1
vote
2 answers

I deleted files in AppData/Packages and some apps does'n work

I'm stupid and I deleted files in Windows 8.1 on my Surface Pro files in AppData/Packages folder. Now some apps doesn't work, especially all in metro (Windows Store too). How can I fix this? I dont have any backup, even I dont have Windows 8…
user1065425
1
vote
2 answers

Retrieve application data directory in node.js

My node.js application needs to store large quantities of binary data. Using local filesystem seems to be appropriate solution, but application data directories are placed in different location depending on host system. What is a system-independent…
Koder
  • 454
  • 5
  • 13
1
vote
1 answer

Delete a common folder from all users local AppData

Is there a variable for all users in Windows 7 / 8? For example, let's say every user on the PC has a specific folder on their desktop, and I'd like to delete all these folders at once via a command that can be executed through command prompt, is…
ShadowSF96
  • 65
  • 2
  • 2
  • 10
1
vote
1 answer

How to properly provide appdata.xml file with autotools?

What is the right way to carry a appdata.xml file with autotools? The documentation says that it should be installed at /usr/share/appdata/%{id}.appdata.xml. Is it the developer or the packager's responsibility? What about translation? How to make…
azmeuk
  • 4,026
  • 3
  • 37
  • 64
1
vote
1 answer

Local AppData Monitor in Metro app (StorageFileQueryResult.ContentsChanged event not firing)

how would a monitor just a particular file in AppData folder. I've tried using StorageFolderQueryResult.ContentsChanged event to handle this, but this one actually callbacks for any changes through the folder. My problem is to just a monitor a…
minu
  • 117
  • 1
  • 1
  • 6
1
vote
0 answers

How to read application configuration of previous version if current not exist

The application configuration is usually stored here: C:\Users\[USER]\AppData\Local\[COMPANY]\[APPLICATION]_[HASH]\[VERSION]\user.config So if there is a new version, there will be no configuration - the version number has increased. Q: How can I…
joe
  • 8,344
  • 9
  • 54
  • 80
1
vote
0 answers

How can I share a single app_data MDF between two projects in Visual Studio efficiently?

How can I share a single MDF between two projects in Visual Studio efficiently? I know I can install it to the local db store, but I prefer to keep the MDF as part of a test package for sharing to the other devs until we get past initial greenfield…
jcolebrand
  • 15,889
  • 12
  • 75
  • 121
1
vote
0 answers

Should user configuration data be stored in registry anymore?

Our Windows application is failing on a new workstation in a large network. The app fails during a procedure that accesses the HKCU registry sub-tree using these operations: RegOpenKeyExA, RegQueryValueExA, RegCreateKeyExA, RegQueryValueExA, …
CJ7
  • 22,579
  • 65
  • 193
  • 321