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

Best Practice User Files and Folders in AppData

I’m writing an application that should save user specific data into AppData. This application has an installer. Now I’m not sure, what is the best way to provide the folders in AppData. Should the installer create (and delete) the folders, or should…
Martini Bianco
  • 1,484
  • 1
  • 13
  • 23
1
vote
0 answers

Data revert in my Android app

I have released an app on Google Play made with Construct 2, and I have a big problem. One of the users of my app have complained on losing data, but not entirely. For example, he was on level 27 and had 240 coins, and somehow he was sent back to…
Robby
  • 71
  • 7
1
vote
3 answers

VB6: ShellExecute an EXE inside AppData

I have the following sub: Public Sub ShellApp(URL As String) Dim vResult As Long vResult = ShellExecute(0, "open", URL, vbNullString, vbNullString, vbMinimizedFocus) End If End Sub This is on a layer that cannot be changed due…
Ahmad Mousa
  • 745
  • 2
  • 7
  • 18
1
vote
0 answers

Windows: How to get current user's AppData when run as administrator

WCHAR buff[100]; GetEnvironmentVariableW(L"APPDATA", buff, 100); current user isn't administrator, when running as administrator, I get administrator's APPDATA. Is there a way to get current user's APPDATA?
King
  • 41
  • 4
1
vote
1 answer

How to Javascript notify() with ms-appdata on Windows 10 UWP

Due to file-writing security issues we have tried to switch our app from using ms-appx-web: to using ms-appdata:. But it immediately fails because we rely on window.external.notify() which works fine with ms-appx-web: but seems to behave as a no-op…
1
vote
2 answers

how to writh full path of folder that is located locally in appData

JSON file: { "url": "" } I want to insert to url the following path: C:\Users\yw1kew\AppData\Local\dmv\dmv.data\cameraApp I want it to be locally to any computer (not just my machine) therefore I need to start the path from appdata I…
Tom Cohen
  • 143
  • 1
  • 4
  • 11
1
vote
1 answer

Inactivity, disconnecting from the service - using GoogleApiClient in Service

I am creating a service to upload files to Google Drive App Data Folder using Google Drive Android API. I initialized the GoogleApiClient in the onCreate() method of the service. Then, I have written the code to upload the file to Google Drive in…
1
vote
0 answers

Change location of HelpClient.cfg used for SQL Management Studio

Is it possible to change the location of %AppData%\Local\Microsoft\HelpLibrary\HelpClient.cfg to for example, c:\ssmshelp\HelpClient.cfg for all users? The profiles are not saved on my servers, so each time a user starts SQL Management Studio he…
1
vote
2 answers

JavaScript: Retrieving the %APPDIR% Path

Is it possible to retrieve the path of %APPDIR% (in Windows XP: C:\Documents and Settings\UserName\Application Data) in JavaScript? The solution must be supported by Internet Explorer 6. Background: I want to provide the user with a link to a…
chiccodoro
  • 14,407
  • 19
  • 87
  • 130
1
vote
1 answer

Read an xml file from app data in a UWP app

We have a UWP app. I want to parse an XML file that will be placed into the add data for the app, by another app. (our app isn't being uploaded to the store, so we are able to do this). What is the best way for me to open this file from my UWP app?…
1
vote
1 answer

Is it possible for WiX Installer to create an AppData/Local (or Roaming)/MyApp folder for each user on a machine?

The data to be stored in the folder needs to be editable for each user (who gets their own configuration), so I can't put it in ProgramData. Right now, I have but that only installs to the AppData/Roaming directory for the user who installs the…
HelloDog
  • 47
  • 1
  • 6
1
vote
2 answers

Why oShell.Run not work

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…
checkmate
  • 47
  • 6
1
vote
4 answers

How to get %AppData% path as std::string?

I've read that one can use SHGetSpecialFolderPath(); to get the AppData path. However, it returns a TCHAR array. I need to have an std::string. How can it be converted to an std::string? Update I've read that it is possible to use getenv("APPDATA"),…
Z0q
  • 1,689
  • 3
  • 28
  • 57
1
vote
2 answers

AppData / Similar for all OS : C++?

I'm looking to store some "preferences" for my C++ application. Under windows I know I have to use the "AppData" folder, but I need the equivalent for Linux and OsX. Is there some library or portable way to get such information in C++ ? Here is the…
ClubberLang
  • 1,624
  • 3
  • 21
  • 45
1
vote
1 answer

Purpose of guihandles in programmatic Matlab GUI design

I'm working on a fairly complex (for me) GUI in Matlab, made programmatically without GUIDE. The different but similar ways to organize GUI objects confuse me. Please tell me where my understanding is incorrect, and if they're actually different at…
skyrmion
  • 11
  • 1